Skip to content

Commit 20a5462

Browse files
authored
Examples: Clean up. (#29936)
1 parent 587bf61 commit 20a5462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/webgpu_animation_retargeting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script type="module">
2525

2626
import * as THREE from 'three';
27-
import { color, screenUV, hue, reflector, time, Fn, vec2, length, atan2, float, sin, cos, vec3, sub, mul, pow, dodge, normalWorld } from 'three/tsl';
27+
import { color, screenUV, hue, reflector, time, Fn, vec2, length, atan2, float, sin, cos, vec3, sub, mul, pow, blendDodge, normalWorld } from 'three/tsl';
2828

2929
import Stats from 'three/addons/libs/stats.module.js';
3030

@@ -85,7 +85,7 @@
8585
const coloredVignette = screenUV.distance( .5 ).mix( hue( color( 0x0175ad ), time.mul( .1 ) ), hue( color( 0x02274f ), time.mul( .5 ) ) );
8686
const lightSpeedEffect = lightSpeed( normalWorld ).clamp();
8787
const lightSpeedSky = normalWorld.y.remapClamp( -.1, 1 ).mix( 0, lightSpeedEffect );
88-
const composedBackground = dodge( coloredVignette, lightSpeedSky );
88+
const composedBackground = blendDodge( coloredVignette, lightSpeedSky );
8989

9090
scene.backgroundNode = composedBackground;
9191

0 commit comments

Comments
 (0)