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

TSL Transpiler varying : /* unknown statement */; #29968

Open
Makio64 opened this issue Nov 26, 2024 · 0 comments
Open

TSL Transpiler varying : /* unknown statement */; #29968

Makio64 opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
Enhancement TSL Three.js Shading Language

Comments

@Makio64
Copy link
Contributor

Makio64 commented Nov 26, 2024

Description

Currently the TSL Transpiler don't seem to recognize varying. Maybe it's because there isn't a vertex/fragment context?

varying vec2 vUV; ---transpile to----> /* unknown statement */;

Solution

take varying in account

Alternatives

Have the tsl transpilor editor split in 2 so we can add the main of the vertex and the main of the fragment and it can use the varying correctly in both.

Additional context

I was doing a quick test on this reference : https://github.com/pmndrs/meshline/blob/master/src/MeshLineMaterial.ts

@Mugen87 Mugen87 added the TSL Three.js Shading Language label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement TSL Three.js Shading Language
Projects
None yet
Development

No branches or pull requests

3 participants