GLSL双精度角度,触发和指数函数解决方法 [英] GLSL Double Precision Angle, Trig and Exponential Functions Workaround

查看:237
本文介绍了GLSL双精度角度,触发和指数函数解决方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GLSL中,对双精度变量和操作的初步支持可以在这里找到。但是他们还提到不支持双精度版本的角度,三角函数和指数
函数。

In GLSL there's rudimentary support for double precision variables and operations which can be found here. However they also mention "Double-precision versions of angle, trigonometry, and exponential functions are not supported.".

有一个简单的解决方法,还是从头开始写自己的功能?

Is there a simple workaround for this, or do I have to write my own functions from scratch?

推荐答案

这个链接似乎是最好的答案

所以是的,你需要为这些功能自己实现。

So yes, you'll need to make your own implementation for those functions.

glibc来源可能是你的朋友。

这篇关于GLSL双精度角度,触发和指数函数解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆