-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
TSL Editor Example: Does not work because of 404 of three JS files #28984
Comments
The links the example are not correct since the How about we move |
I'm not sure what is the best solution, as my guts say this is a political issue related to the design policy about what goes into |
If we want to completely hide the builders from the users, the examples needs to be rewritten and the renderer a new API to report the raw shaders for a render item (like a mesh). |
@sunag Maybe something like: const output = 'WGSL'; // WGSL | GLSL;
const shader = renderer.debug.getRawShader( mesh, output );
console.log( shader.vertexShader, shader.fragmentShader ); |
I think it should return the code of the current backend, if the user want glsl, use Maybe with this signature could work: const shader = renderer.debug.getRawShader( scene, camera, mesh ); |
Description
When trying the latest TSL Editor from the Three.js website (r167) I get 404 error for three JS files and the TSL Editor shows blank page.
Tried Chrome (with WebGPU) and FireFox (without WebGPU), the result is the same.
A direct link to one of the files https://threejs.org/src/renderers/webgpu/WebGPURenderer.js confirms the 404 error.
It might be a temporary network issue (that will resolve by itself in a few hours), or missing files, or wrong URLs.
Reproduction steps
Code
N/A
Live example
https://threejs.org/examples/#webgpu_tsl_editor
Screenshots
Page with the TSL Editor:
Direct visit to one of the 404 files:
Version
r167
Device
Desktop
Browser
Chrome, Firefox
OS
Windows
The text was updated successfully, but these errors were encountered: