Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions examples/webgpu_tsl_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
const rendererDOM = document.getElementById( 'renderer' );

const renderer = new THREE.WebGPURenderer( { antialias: true } );
renderer.outputColorSpace = THREE.LinearSRGBColorSpace;
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( 200, 200 );
rendererDOM.appendChild( renderer.domElement );
Expand Down Expand Up @@ -104,7 +103,7 @@

const options = {
shader: 'fragment',
outputColorSpace: THREE.LinearSRGBColorSpace,
outputColorSpace: THREE.SRGBColorSpace,
output: 'WGSL',
preview: true
};
Expand All @@ -119,11 +118,9 @@

const { texture, uniform, vec2, vec4, uv, oscSine, time, grayscale } = THREE;

//const samplerTexture = new THREE.Texture();
const samplerTexture = new THREE.TextureLoader().load( './textures/uv_grid_opengl.jpg' );
samplerTexture.wrapS = THREE.RepeatWrapping;
//samplerTexture.wrapT = THREE.RepeatWrapping;
//samplerTexture.colorSpace = THREE.SRGBColorSpace;
samplerTexture.colorSpace = THREE.SRGBColorSpace;

const scaledTime = time.mul( .5 ); // .5 is speed
const uv0 = uv();
Expand Down