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

Issues with the tint of the shader #1

Open
JovenOculto opened this issue Nov 11, 2021 · 2 comments
Open

Issues with the tint of the shader #1

JovenOculto opened this issue Nov 11, 2021 · 2 comments

Comments

@JovenOculto
Copy link

I know it is an old shader and possibly you no longer pay attention to this but I have not found a shader or similar anywhere on the internet and it is very necessary for my current project. the problem is that I have tried a thousand things but it always applies a greenish tint to the texture, any idea how to solve it?
This is the porblem
wrong
And this is what it should look like
good

the difference is small but crucial

@thnewlands
Copy link
Owner

Hi there! Glad you've found this useful. This is pretty old code but reading over it again I didn't see anything that jumped out to me as making the image greener. The reason that your sprite looks washed out is probably because this is a lit shader. If it were unlit it would look exactly like the input texture.

You could try modifying the shader to be unlit. This is the simplest approach to doing so:
http://answers.unity.com/answers/379342/view.html

Another approach would be to rewrite it as a vertex / fragment shader instead of a surface shader!

@JovenOculto
Copy link
Author

Thank you very much, I will try the options you tell me :)

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