helmut.bressler Posted June 25, 2018 Posted June 25, 2018 Hello, I would like to ask how the s_water_time shader parameter is implemented. As far as I can tell it is a seconds based timer. If my assumption is correct, my question would be, if that timer is resetted to zero after a certain amount of time ? I'm asking this, because I'm working on a displacement map based wave implementation and I know that a seconds based timer which is never resetted is running into precision problems after 2-4 weeks or so. Thanks Helmut
silent Posted June 26, 2018 Posted June 26, 2018 Hi Helmut, s_water_time resetting every 10000 seconds for ObjectWaterGlobal object and it's shaders. There is, however, no reset in ObjectWaterMesh. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
helmut.bressler Posted June 26, 2018 Author Posted June 26, 2018 Hello Silent, thank you for that piece information. I'm indeed using a ObjectWaterMesh but I can easily implement a timer for my use case. Just wanted to know how s_water_time behaves :-) Cheers, Helmut
Recommended Posts