Material and C++
I'm create game about pirates and I need water for it, so I'm trying to implement Gerstner wave function https://developer.nvidia.com/gpugems/GPUGems/gpugems_ch01.html Equation 1. (tried also 8a)
And I need to do it on both GPU and CPU so I have done this on both and it returns different values?
What's the difference between HLSL float and C++ float? Can floating precision be problem here?
And HLSL code tried material nodes but I used this to be sure(Use as custom node):
Can somebody help me figure it out?
Thanks for any help!
asked Aug 23 '18 at 01:04 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here