Browse Source

Water2: Remove encoding option. (#22955)

Michael Herzog 3 years ago
parent
commit
a0de39b47e
1 changed files with 2 additions and 6 deletions
  1. 2 6
      examples/jsm/objects/Water2.js

+ 2 - 6
examples/jsm/objects/Water2.js

@@ -1,7 +1,6 @@
 import {
 	Clock,
 	Color,
-	LinearEncoding,
 	Matrix4,
 	Mesh,
 	RepeatWrapping,
@@ -41,7 +40,6 @@ class Water extends Mesh {
 		const reflectivity = options.reflectivity || 0.02;
 		const scale = options.scale || 1;
 		const shader = options.shader || Water.WaterShader;
-		const encoding = options.encoding !== undefined ? options.encoding : LinearEncoding;
 
 		const textureLoader = new TextureLoader();
 
@@ -73,15 +71,13 @@ class Water extends Mesh {
 		const reflector = new Reflector( geometry, {
 			textureWidth: textureWidth,
 			textureHeight: textureHeight,
-			clipBias: clipBias,
-			encoding: encoding
+			clipBias: clipBias
 		} );
 
 		const refractor = new Refractor( geometry, {
 			textureWidth: textureWidth,
 			textureHeight: textureHeight,
-			clipBias: clipBias,
-			encoding: encoding
+			clipBias: clipBias
 		} );
 
 		reflector.matrixAutoUpdate = false;