Skip to content

Move variable declarations above the line that includes clipping planes shader #31144

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

rtortajada
Copy link
Contributor

When using clippingPlanes over Line2 geometries, the shader does not compile since some variables are trying to be used before they are declared.

For other shaders, a similar change was made on https://github.com/mrdoob/three.js/pull/22172/files

@Mugen87 Mugen87 added this to the r177 milestone May 21, 2025
@Mugen87 Mugen87 merged commit 2d978cb into mrdoob:dev May 22, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants