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 LineNodeMaterial, uv() and positionGeometry values are relative to the "instance/segment" of the line.
I expect both or at least one of them to return the position on the full line so it makes easy to make custom effect on the line.
material.lineColorNode = vec3( positionGeometry.y ) // by instance
material.lineColorNode = vec3( uv().y ) // by instance
Version
r170
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered:
Makio64
changed the title
LineNodeMaterial uv() & positionGeometry is relative to the segments not the line
LineNodeMaterial uv() & positionGeometry are relative to the segments not the line
Nov 25, 2024
Description
In
LineNodeMaterial
,uv()
andpositionGeometry
values are relative to the "instance/segment" of the line.I expect both or at least one of them to return the position on the full line so it makes easy to make custom effect on the line.
Reproduction steps
Code
Live example
https://jsfiddle.net/Makio64/snq84pke/8/
Screenshots
material.lineColorNode = vec3( positionGeometry.y ) // by instance
material.lineColorNode = vec3( uv().y ) // by instance
Version
r170
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: