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

Correctly using shader #2

Open
StatueTheShaman opened this issue Dec 17, 2021 · 1 comment
Open

Correctly using shader #2

StatueTheShaman opened this issue Dec 17, 2021 · 1 comment

Comments

@StatueTheShaman
Copy link

StatueTheShaman commented Dec 17, 2021

Using the 'Converting the Object-Space forward to World-Space' results in only 3 sides of the spite being viewed.
I am wondering where does Normalize connect too? Thanks!

@Torgo13
Copy link

Torgo13 commented May 10, 2022

This repo unfortunately doesn't have the changes mentioned in the second article: https://www.noveltech.dev/sprite-change-camera-direction-2/

I copied the two shader graphs using the images in the article. Getting the animation to work was simple. I just had to connect the output of the elapsed time to the X coordinate of the sprite selector (where the Y coordinate changes the viewing angle of the character).

However I haven't been able to get 'Converting the Object-Space forward to World-Space' to work. It outputs a Vector3 and I'm not sure where to connect it to. From the article it sounds like the shader graph for selecting the viewing angle of the character has been changed so there's probably a lot more I would need to modify.

@StatueTheShaman Could you show me a screenshot of your shader graph?

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

No branches or pull requests

2 participants