Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Clean up. #27856

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/jsm/postprocessing/SAOPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class SAOPass extends Pass {
vertexShader: SAOShader.vertexShader,
uniforms: UniformsUtils.clone( SAOShader.uniforms )
} );
this.saoMaterial.extensions.derivatives = true;
this.saoMaterial.defines[ 'PERSPECTIVE_CAMERA' ] = this.camera.isPerspectiveCamera ? 1 : 0;
this.saoMaterial.uniforms[ 'tDepth' ].value = depthTexture;
this.saoMaterial.uniforms[ 'tNormal' ].value = this.normalRenderTarget.texture;
Expand Down
2 changes: 0 additions & 2 deletions examples/jsm/renderers/webgl-legacy/nodes/GLSL1NodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class GLSL1NodeBuilder extends NodeBuilder {

getTextureBias( texture, textureProperty, uvSnippet, biasSnippet ) {

if ( this.material.extensions !== undefined ) this.material.extensions.shaderTextureLOD = true;

return `textureLod( ${textureProperty}, ${uvSnippet}, ${biasSnippet} )`;

}
Expand Down
2 changes: 0 additions & 2 deletions examples/jsm/renderers/webgl-legacy/nodes/WebGLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ class WebGLNodeBuilder extends NodeBuilder {

generateTextureLevel( texture, textureProperty, uvSnippet, biasSnippet ) {

if ( this.material.extensions !== undefined ) this.material.extensions.shaderTextureLOD = true;

return `textureLod( ${textureProperty}, ${uvSnippet}, ${biasSnippet} )`;

}
Expand Down
2 changes: 0 additions & 2 deletions examples/webgl_gpgpu_protoplanet.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@
fragmentShader: document.getElementById( 'particleFragmentShader' ).textContent
} );

material.extensions.drawBuffers = true;

const particles = new THREE.Points( geometry, material );
particles.matrixAutoUpdate = false;
particles.updateMatrix();
Expand Down
1 change: 0 additions & 1 deletion examples/webgl_materials_subsurface_scattering.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
fragmentShader: shader.fragmentShader,
lights: true
} );
material.extensions.derivatives = true;

// LOADER

Expand Down