diff --git a/examples/jsm/nodes/materials/Materials.js b/examples/jsm/nodes/materials/Materials.js index aa9644c967faf3..d1057f76ca3209 100644 --- a/examples/jsm/nodes/materials/Materials.js +++ b/examples/jsm/nodes/materials/Materials.js @@ -11,6 +11,6 @@ export { default as MeshLambertNodeMaterial } from './MeshLambertNodeMaterial.js export { default as MeshPhongNodeMaterial } from './MeshPhongNodeMaterial.js'; export { default as MeshStandardNodeMaterial } from './MeshStandardNodeMaterial.js'; export { default as MeshPhysicalNodeMaterial } from './MeshPhysicalNodeMaterial.js'; -export { default as MeshSSSPhysicalNodeMaterial } from './MeshSSSPhysicalNodeMaterial.js'; +export { default as MeshSSSNodeMaterial } from './MeshSSSNodeMaterial.js'; export { default as PointsNodeMaterial } from './PointsNodeMaterial.js'; export { default as SpriteNodeMaterial } from './SpriteNodeMaterial.js'; diff --git a/examples/jsm/nodes/materials/MeshSSSPhysicalNodeMaterial.js b/examples/jsm/nodes/materials/MeshSSSNodeMaterial.js similarity index 86% rename from examples/jsm/nodes/materials/MeshSSSPhysicalNodeMaterial.js rename to examples/jsm/nodes/materials/MeshSSSNodeMaterial.js index a61180abcfd79b..03ac0174d0aeb8 100644 --- a/examples/jsm/nodes/materials/MeshSSSPhysicalNodeMaterial.js +++ b/examples/jsm/nodes/materials/MeshSSSNodeMaterial.js @@ -5,7 +5,7 @@ import PhysicalLightingModel from '../functions/PhysicalLightingModel.js'; import MeshPhysicalNodeMaterial from './MeshPhysicalNodeMaterial.js'; import { float, vec3 } from '../shadernode/ShaderNode.js'; -class SSSPhysicalLightingModel extends PhysicalLightingModel { +class SSSLightingModel extends PhysicalLightingModel { constructor( useClearcoat, useSheen, useIridescence, useSSS ) { @@ -37,7 +37,7 @@ class SSSPhysicalLightingModel extends PhysicalLightingModel { } -class MeshSSSPhysicalNodeMaterial extends MeshPhysicalNodeMaterial { +class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial { constructor( parameters ) { @@ -60,7 +60,7 @@ class MeshSSSPhysicalNodeMaterial extends MeshPhysicalNodeMaterial { setupLightingModel( /*builder*/ ) { - return new SSSPhysicalLightingModel( this.useClearcoat, this.useSheen, this.useIridescence, this.useSSS ); + return new SSSLightingModel( this.useClearcoat, this.useSheen, this.useIridescence, this.useSSS ); } @@ -79,6 +79,6 @@ class MeshSSSPhysicalNodeMaterial extends MeshPhysicalNodeMaterial { } -export default MeshSSSPhysicalNodeMaterial; +export default MeshSSSNodeMaterial; -addNodeMaterial( 'MeshSSSPhysicalNodeMaterial', MeshSSSPhysicalNodeMaterial ); +addNodeMaterial( 'MeshSSSNodeMaterial', MeshSSSNodeMaterial ); diff --git a/examples/webgpu_materials_sss.html b/examples/webgpu_materials_sss.html index 4891481d96c225..55625eb59ab813 100644 --- a/examples/webgpu_materials_sss.html +++ b/examples/webgpu_materials_sss.html @@ -105,7 +105,7 @@ const thicknessTexture = loader.load( 'models/fbx/bunny_thickness.jpg' ); imgTexture.wrapS = imgTexture.wrapT = THREE.RepeatWrapping; - const material = new Nodes.MeshSSSPhysicalNodeMaterial(); + const material = new Nodes.MeshSSSNodeMaterial(); material.color = new THREE.Color( 1.0, 0.2, 0.2 ); material.roughness = 0.3; material.thicknessColorNode = Nodes.texture( thicknessTexture ).mul( Nodes.vec3( 0.5, 0.3, 0.0 ) );