We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using https://threejs.org/examples/webgpu_tsl_transpiler.html to convert some of my previous shader i got into various bugs ;
invertsqrt
invertSqrt
float x = .5 * .5;
const x = float( .5.mul( .5 ) ).toVar();
.5
vec2 x = .5 * vec2(.5);
const x = vec2( .5.mul( vec2( .5 ) ) ).toVar();
vec4 a1 = (floor(0.)).xzyw;
const a1 = vec4( floor( 0. )..( xzyw ) ).toVar();
..( xzyw)
.xzyw
glsl code in description
https://threejs.org/examples/webgpu_tsl_transpiler.html
No response
r170
The text was updated successfully, but these errors were encountered:
Side note : I coudnt convert correctly : https://www.shadertoy.com/view/Xd3GRf Here my attempt but after correcting the obvious bug in the synthax something still not working : https://jsfiddle.net/f6k9nLot/3/ ( probably the last line in the shader )
Sorry, something went wrong.
sunag
No branches or pull requests
Description
Using https://threejs.org/examples/webgpu_tsl_transpiler.html to convert some of my previous shader i got into various bugs ;
invertsqrt
not add to the import list ( and also it should be convert toinvertSqrt
camel case in tsl )float x = .5 * .5;
=>const x = float( .5.mul( .5 ) ).toVar();
.5
will not be recognize as it should be float(.5)vec2 x = .5 * vec2(.5);
=>const x = vec2( .5.mul( vec2( .5 ) ) ).toVar();
similar bugvec4 a1 = (floor(0.)).xzyw;
=>const a1 = vec4( floor( 0. )..( xzyw ) ).toVar();
this is incorrect, it should eb..( xzyw)
=>.xzyw
Reproduction steps
Code
glsl code in description
Live example
https://threejs.org/examples/webgpu_tsl_transpiler.html
Screenshots
No response
Version
r170
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: