Skip to content

Conversation

nshelton
Copy link

@nshelton nshelton commented Mar 25, 2022

normal is already computed in clip space so why is it projected again using the projection matrix? This creates incorrect thickness in general but especially for sizeAttenuation to work as expected. Am I missing something magic here?

could be related to these
#49
#52
#136
#132

I also noticed strange behavior when scaling meshlines causin the thickness to be unpredictable. So there may be other issues in the shader, I ended up just doing the calculations in world space for consistent (in world space) line width since I wasn't able to guarantee it with this shader

@drcmda
Copy link
Contributor

drcmda commented Dec 7, 2022

i've merged your commit in https://github.com/pmndrs/meshline

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