Skip to content
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

LineNodeMaterial uv() & positionGeometry are relative to the segments not the line #29961

Open
Makio64 opened this issue Nov 25, 2024 · 0 comments
Labels

Comments

@Makio64
Copy link
Contributor

Makio64 commented Nov 25, 2024

Description

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.

Reproduction steps

  1. this fiddle or code below

Code

	material.lineColorNode = vec3( positionGeometry.y ) // by instance
	material.lineColorNode = vec3( uv().y ) // by instance

Live example

https://jsfiddle.net/Makio64/snq84pke/8/

Screenshots

material.lineColorNode = vec3( positionGeometry.y ) // by instance
Screenshot 2024-11-25 at 18 44 09

material.lineColorNode = vec3( uv().y ) // by instance
Screenshot 2024-11-25 at 18 48 09

Version

r170

Device

No response

Browser

No response

OS

No response

@Makio64 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
@Mugen87 Mugen87 added the Nodes label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants