1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:23:53 +00:00

get rid of buggy shader trick

This commit is contained in:
Miloslav Číž 2017-09-28 20:44:43 +02:00
parent c9c6326d87
commit 64793a55dc

View file

@ -236,7 +236,7 @@ void main(void)
#else #else
float shore = 1.0; float shore = 1.0;
#endif #endif
vec2 screenCoordsOffset = ( (normal.xy + rainRipple.w * vec2(0.0,2.0)) * REFL_BUMP * shore); vec2 screenCoordsOffset = normal.xy * REFL_BUMP * shore;
// reflection // reflection
vec3 reflection = texture2D(reflectionMap, screenCoords + screenCoordsOffset).rgb; vec3 reflection = texture2D(reflectionMap, screenCoords + screenCoordsOffset).rgb;