Przeglądaj źródła

Move sampler3D precision definition inside #ifdef (#21531)

Garrett Johnson 4 lat temu
rodzic
commit
ff75ee9159
1 zmienionych plików z 1 dodań i 1 usunięć
  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;