Skip to content

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