문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top