WaterFilter water height error


I finally managed to use the current master branch and now have an issue with the water height.
I think the error was introduced in this commit: Commit

@pspeed improved performance through not generating a new Plane and setting the waterHeight material parameter every preFrame call.
However - if you don’t call setWaterHeight after the material has been created - now the material parameter doesn’t get set during initialization.

Take a look at the initFilter(…) method. There are a bunch of material paramters set, but not waterHeight.

Oops. Fixed in git… thanks for catching it.

Against my better judgment I did initialization of the Plane like everything else in that class… right in the field initializations. At least it’s consistent.

1 Like