kravening / Nut-A-Squirrel

0 stars 0 forks source link

Foliage wind shader not behaving correctly. #31

Closed kravening closed 5 years ago

kravening commented 5 years ago

during our weekly test we noticed that the foliage is acting strangely, looking like the 'wind' the shader is supposed to emulate is having too much of an effect on the geometry.

added to it it seems that there is some problems with the dampening of the effect based on the local Y axis.

kravening commented 5 years ago

to fix the wind strength properties have been added to the shader, allowing for lessening or increasing the strength of the wind effect. reducing the effect by 90% seemed to be the right amount.

The problem with the Local y position based dampening effect doesn't have a shader based solution, to solve the dampening bug we'd have to make a CPU based effect, this would become too heavy for a smartphone and this effect will be put on hold until another solution comes around, which we don't expect.

This has been fixed under a commit in the branch "FoliageWindShader" after receiving feedback during our code review and tests.

UPDATE: the wind effect has been cut out of the game after continuous efforts to look for a solution in the shader, but to no avail.