diff --git a/examples/jsm/nodes/lighting/AnalyticLightNode.js b/examples/jsm/nodes/lighting/AnalyticLightNode.js index d72da74bf301e5..960b997f1fd1ff 100644 --- a/examples/jsm/nodes/lighting/AnalyticLightNode.js +++ b/examples/jsm/nodes/lighting/AnalyticLightNode.js @@ -75,14 +75,8 @@ class AnalyticLightNode extends LightingNode { shadowCoord = vec3( shadowCoord.x, - shadowCoord.y.oneMinus(), // WebGPU: Flip Y - shadowCoord.z.add( bias ).mul( 2 ).sub( 1 ) // WebGPU: Convertion [ 0, 1 ] to [ - 1, 1 ] - ); - - shadowCoord = vec3( - shadowCoord.x, - shadowCoord.y.oneMinus(), // WebGPU: Flip Y - shadowCoord.z//.add( bias ) // .mul( 2 ).sub( 1 ) // WebGPU: Convertion [ 0, 1 ] to [ - 1, 1 ] + shadowCoord.y,//.oneMinus(), // WebGPU: Flip Y + shadowCoord.z.add( bias ) // .mul( 2 ).sub( 1 ) // WebGPU: Convertion [ 0, 1 ] to [ - 1, 1 ] ); const textureCompare = ( depthTexture, shadowCoord, compare ) => texture( depthTexture, shadowCoord ).compare( compare ); diff --git a/examples/jsm/renderers/webgl/WebGLBackend.js b/examples/jsm/renderers/webgl/WebGLBackend.js index 520aac032028e0..9240e55cd82ce6 100644 --- a/examples/jsm/renderers/webgl/WebGLBackend.js +++ b/examples/jsm/renderers/webgl/WebGLBackend.js @@ -891,17 +891,6 @@ if ( error < 100 ) { console.log( this.get( texture ), texture ); error++ } gl.bindFramebuffer( gl.DRAW_FRAMEBUFFER, fb ); -/* - if ( renderContext.depthTexture !== null ) { - //console.log( 'rebind'); - - const { textureGPU } = this.get( renderContext.depthTexture ); - - - gl.framebufferTexture2D( gl.DRAW_FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.TEXTURE_2D, textureGPU, 0 ); - - } -*/ } } else { diff --git a/examples/webgpu_cubemap_dynamic.html b/examples/webgpu_cubemap_dynamic.html index 58116396a41443..730d7742ada6ac 100644 --- a/examples/webgpu_cubemap_dynamic.html +++ b/examples/webgpu_cubemap_dynamic.html @@ -107,7 +107,7 @@ // material = new Nodes.MeshStandardNodeMaterial( { - envMap: cubeRenderTarget.texture, +// envMap: cubeRenderTarget.texture, roughness: 0.05, metalness: 1 } );