You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current InstancedPointNodeMaterial, the vertex offset is applied within the vertexNode, but the depth is calculated based on positionView.z, which is obtained before applying the offset. The depth calculation should use the positionView.z value after the offset is applied. This approach may result in incorrect depth values.
If the positionView is recalculated after applying the vertex offset in the vertexNode, the result will be correct.
Instead of implementing vertexNode, I wonder if it isn't better to implement positionNode in InstancedPointsNodeMaterial instead and apply the offset in local space. In this way, we can update the existing positionLocal TSL object which means subsequent objects like positionView are automatically correct.
Description
In the current InstancedPointNodeMaterial, the vertex offset is applied within the vertexNode, but the depth is calculated based on positionView.z, which is obtained before applying the offset. The depth calculation should use the positionView.z value after the offset is applied. This approach may result in incorrect depth values.
If the positionView is recalculated after applying the vertex offset in the vertexNode, the result will be correct.
Reproduction steps
Code
Live example
Screenshots
No response
Version
172
Device
Desktop
Browser
Chrome
OS
MacOS
The text was updated successfully, but these errors were encountered: