Skip to content

LineMaterial: Fix clipping planes. #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
Merged

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
@Mugen87 Mugen87 changed the title Move variable declarations above the line that includes clipping planes shader LineMaterial: Fix clipping planes. May 25, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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