|
@@ -321,7 +321,7 @@ THREE.Water.WaterShader = {
|
|
' vec3 coord = vCoord.xyz / vCoord.w;',
|
|
' vec3 coord = vCoord.xyz / vCoord.w;',
|
|
' vec2 uv = coord.xy + coord.z * normal.xz * 0.05;',
|
|
' 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 );',
|
|
' vec4 refractColor = texture2D( tRefractionMap, uv );',
|
|
|
|
|
|
// multiply water color with the mix of both textures
|
|
// multiply water color with the mix of both textures
|