Browse Source

Move sampler3D precision definition inside #ifdef (#21531)

Garrett Johnson 4 years ago
parent
commit
ff75ee9159
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/postprocessing/LUTPass.js

+ 1 - 1
examples/jsm/postprocessing/LUTPass.js

@@ -31,10 +31,10 @@ const LUTShader = {
 
 
 	fragmentShader: /* glsl */`
-		precision highp sampler3D;
 
 		uniform float lutSize;
 		#if USE_3DTEXTURE
+		precision highp sampler3D;
 		uniform sampler3D lut3d;
 		#else
 		uniform sampler2D lut;