Skip to content

Commit

Permalink
Examples: Clean up. (#29936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Nov 20, 2024
1 parent 587bf61 commit 20a5462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webgpu_animation_retargeting.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

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

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

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

scene.backgroundNode = composedBackground;

Expand Down

0 comments on commit 20a5462

Please sign in to comment.