From 8a0058e5f1cd28ac242c31651b7c3712f0b67bdf Mon Sep 17 00:00:00 2001 From: WestLangley Date: Fri, 5 Jun 2026 03:20:09 -0400 Subject: [PATCH 1/3] Manual: Update nomenclature (#33723) --- manual/en/webgpu-postprocessing.html | 4 ++-- manual/zh/webgpu-postprocessing.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manual/en/webgpu-postprocessing.html b/manual/en/webgpu-postprocessing.html index 962f3963fb37c4..5fdb7fc57bfce5 100644 --- a/manual/en/webgpu-postprocessing.html +++ b/manual/en/webgpu-postprocessing.html @@ -208,7 +208,7 @@

MRT

 scenePass.setMRT( mrt( {
   output: output,
-  normal: directionToColor( normalView ),
+  normal: packNormalToRGB( normalView ),
   metalrough: vec2( metalness, roughness )
 } ) );
 
@@ -225,7 +225,7 @@ 

MRT

const sceneNormal = sample( ( uv ) => { - return colorToDirection( scenePassNormal.sample( uv ) ); + return unpackRGBToNormal( scenePassNormal.sample( uv ) ); } );
diff --git a/manual/zh/webgpu-postprocessing.html b/manual/zh/webgpu-postprocessing.html index 1f4a4976c01321..fc559320cdb38b 100644 --- a/manual/zh/webgpu-postprocessing.html +++ b/manual/zh/webgpu-postprocessing.html @@ -207,7 +207,7 @@

MRT(多渲染目标)

 scenePass.setMRT( mrt( {
   output: output,
-  normal: directionToColor( normalView ),
+  normal: packNormalToRGB( normalView ),
   metalrough: vec2( metalness, roughness )
 } ) );
 
@@ -224,7 +224,7 @@ 

MRT(多渲染目标)

const sceneNormal = sample( ( uv ) => { - return colorToDirection( scenePassNormal.sample( uv ) ); + return unpackRGBToNormal( scenePassNormal.sample( uv ) ); } );
From 8f60da4a0f30446f1b32aeed4316aca71d8352dd Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Fri, 5 Jun 2026 16:23:05 +0900 Subject: [PATCH 2/3] Examples: Migrate examples to new DRACOLoader url config (#33724) --- examples/webgl_gpgpu_water.html | 4 ++-- examples/webgl_loader_3dtiles.html | 4 ++-- examples/webgl_loader_gltf_animation_pointer.html | 4 ++-- examples/webgl_loader_gltf_avif.html | 4 ++-- examples/webgl_loader_gltf_transmission.html | 4 ++-- examples/webgl_materials_car.html | 4 ++-- examples/webgl_materials_envmaps_groundprojected.html | 4 ++-- examples/webgl_random_uv.html | 4 ++-- examples/webgl_watch.html | 4 ++-- examples/webgpu_compute_water.html | 4 ++-- examples/webgpu_loader_gltf_transmission.html | 4 ++-- examples/webgpu_materials_envmaps_groundprojected.html | 4 ++-- examples/webgpu_performance.html | 4 ++-- examples/webgpu_postprocessing_dof_basic.html | 4 ++-- examples/webgpu_postprocessing_sss.html | 4 ++-- examples/webgpu_tonemapping.html | 4 ++-- examples/webgpu_water.html | 4 ++-- 17 files changed, 34 insertions(+), 34 deletions(-) diff --git a/examples/webgl_gpgpu_water.html b/examples/webgl_gpgpu_water.html index c89b4402df30be..89f19de21e9630 100644 --- a/examples/webgl_gpgpu_water.html +++ b/examples/webgl_gpgpu_water.html @@ -151,7 +151,7 @@ import { SimplexNoise } from 'three/addons/math/SimplexNoise.js'; import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; import { HDRLoader } from 'three/addons/loaders/HDRLoader.js'; - import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js'; + import { DRACOLoader, DRACO_GLTF_CONFIG } from 'three/addons/loaders/DRACOLoader.js'; // Texture width for simulation const WIDTH = 128; @@ -242,7 +242,7 @@ const hdrLoader = new HDRLoader().setPath( './textures/equirectangular/' ); const glbloader = new GLTFLoader().setPath( 'models/gltf/' ); - glbloader.setDRACOLoader( new DRACOLoader().setDecoderPath( 'jsm/libs/draco/gltf/' ) ); + glbloader.setDRACOLoader( new DRACOLoader().setDecoderPath( DRACO_GLTF_CONFIG ) ); const [ env, model ] = await Promise.all( [ hdrLoader.loadAsync( 'blouberg_sunrise_2_1k.hdr' ), glbloader.loadAsync( 'duck.glb' ) ] ); env.mapping = THREE.EquirectangularReflectionMapping; diff --git a/examples/webgl_loader_3dtiles.html b/examples/webgl_loader_3dtiles.html index e168c6aa2918d6..74d4d09867ee9a 100644 --- a/examples/webgl_loader_3dtiles.html +++ b/examples/webgl_loader_3dtiles.html @@ -73,7 +73,7 @@