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

remove extra *projectionmatrix in vertex shader #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants