Explorar o código

Examples: Fixed webgl_tiled_forward.html.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
1e2e84d906
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      examples/webgl_tiled_forward.html

+ 2 - 0
examples/webgl_tiled_forward.html

@@ -233,6 +233,8 @@
 						transparent: tIndex === index ? true : false,
 					} );
 
+					mtl.extensions.derivatives = true;
+
 					mtl.uniforms[ "opacity" ].value = tIndex === index ? 0.9 : 1;
 					mtl.uniforms[ "tileData" ] = State.tileData;
 					mtl.uniforms[ "tileTexture" ] = State.tileTexture;