Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

water renders black in dynamic glsl demo #255

Closed Aeva closed 7 years ago

Aeva commented 7 years ago

This is because the waves plugin function defined in ext.vert does not produce valid normals, resulting in the water plugin function to always return (0, 0, 0).

To fix this, the waves plugin function needs to be updated to produce valid normals.

This sort of relates to issue #64.