diff --git a/docs/index.html b/docs/index.html index e6c188d6c6a96e..a9ef2897978655 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1091,7 +1091,7 @@
Unpacks a color value into a direction vector.
@@ -4251,7 +4251,7 @@Packs a direction vector into a color value.
diff --git a/examples/webgpu_mesh_batch.html b/examples/webgpu_mesh_batch.html index 9db61c2875147e..2f828f566da0df 100644 --- a/examples/webgpu_mesh_batch.html +++ b/examples/webgpu_mesh_batch.html @@ -42,7 +42,7 @@ import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; import { radixSort } from 'three/addons/utils/SortUtils.js'; - import { normalView, directionToColor, diffuseColor, vec4 } from 'three/tsl'; + import { normalView, packNormalToRGB, diffuseColor, vec4 } from 'three/tsl'; let camera, scene, renderer; let controls; @@ -131,7 +131,7 @@ material = new THREE.MeshBasicNodeMaterial(); material.outputNode = vec4( - diffuseColor.mul( directionToColor( normalView ).y.add( 0.5 ) ).rgb, + diffuseColor.mul( packNormalToRGB( normalView ).y.add( 0.5 ) ).rgb, diffuseColor.a, ); diff --git a/examples/webgpu_mrt.html b/examples/webgpu_mrt.html index 0e0e7e3bad9de0..5b4bd0b78f2bce 100644 --- a/examples/webgpu_mrt.html +++ b/examples/webgpu_mrt.html @@ -38,7 +38,7 @@