Ver código fonte

Fixes mrdoob/three.js#13473

Matt Simpson 7 anos atrás
pai
commit
2ef4938443
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/objects/Water2.js

+ 1 - 1
examples/js/objects/Water2.js

@@ -321,7 +321,7 @@ THREE.Water.WaterShader = {
 		'	vec3 coord = vCoord.xyz / vCoord.w;',
 		'	vec2 uv = coord.xy + coord.z * normal.xz * 0.05;',
 
-		'	vec4 reflectColor = texture2D( tReflectionMap, uv );',
+		'	vec4 reflectColor = texture2D( tReflectionMap, vec2( 1.0 - uv.x, uv.y ) );',
 		'	vec4 refractColor = texture2D( tRefractionMap, uv );',
 
 		// multiply water color with the mix of both textures