GLSL Double Precision Angle, Trig and Exponential Functions Workaround

≡放荡痞女 提交于 2019-12-01 04:21:20

问题


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?


回答1:


this link seem's to be the best answer

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

glibc source may be your friend.



来源:https://stackoverflow.com/questions/22522169/glsl-double-precision-angle-trig-and-exponential-functions-workaround

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!