Skip to content

Commit 5bf1162

Browse files
authored
Merge pull request #14326 from wizgrav/dev
fix tiled forward example
2 parents 1300607 + 581af6c commit 5bf1162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/webgl_tiled_forward.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252

5353
var RADIUS = 75;
5454

55-
THREE.ShaderChunk[ 'lights_pars_maps' ] += [
55+
THREE.ShaderChunk[ 'lights_pars_begin' ] += [
5656
'#if defined TILED_FORWARD',
5757
'uniform vec4 tileData;',
5858
'uniform sampler2D tileTexture;',
5959
'uniform sampler2D lightTexture;',
6060
'#endif'
6161
].join( '\n' );
6262

63-
THREE.ShaderChunk[ 'lights_fragment_maps' ] += [
63+
THREE.ShaderChunk[ 'lights_fragment_end' ] += [
6464
'',
6565
'#if defined TILED_FORWARD',
6666
'vec2 tUv = floor(gl_FragCoord.xy / tileData.xy * 32.) / 32. + tileData.zw;',
@@ -383,7 +383,7 @@
383383
init( geometry );
384384
resize();
385385

386-
renderer.animate( function ( time ) {
386+
renderer.setAnimationLoop( function ( time ) {
387387

388388
update( time / 1000 );
389389
stats.begin();

0 commit comments

Comments
 (0)