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: Add support for array of varyings #30472

Open
qtnrtnd opened this issue Feb 6, 2025 · 0 comments
Open

TSL: Add support for array of varyings #30472

qtnrtnd opened this issue Feb 6, 2025 · 0 comments
Labels
Enhancement TSL Three.js Shading Language

Comments

@qtnrtnd
Copy link

qtnrtnd commented Feb 6, 2025

Description

Currently, there is no way to create an array of varyings, unlike uniforms (e.g., uniformArray).
Here is a demo in GLSL for those who are not familiar with using varyings as arrays.

Solution

I believe a method very similar to uniformArray, which could naturally be called varyingArray, would be ideal.

Alternatives

I couldn’t find any alternative for what I did in the plain GLSL demo above.

Additional context

No response

@Mugen87 Mugen87 added Enhancement TSL Three.js Shading Language labels Feb 6, 2025
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

2 participants