Issues with GlowShader (2D TopDown RPG/URP/Bloom)

Hi! After applying the Yellow Shader to the flame, the sprite is covered up(?) by the shader effect. I can no longer see the outline of the sprite. I am getting an error on the Sprite Renderer component when I add the material stating the material does not have a texture property. However, I can see that it does. Stephen does not add a texture to his material at this point. How do I remedy this?



Screen Shot 2023-04-08 at 5.55.46 PM
Screen Shot 2023-04-08 at 5.56.32 PM

In your shader, it should be MainTex (_MainTex) not MainText (_MainText)

2 Likes

Can you post a screenshot of the Glow asset material graph as i suspect the issue is there.
It may help to go over that section of the video and make sure everything is connected up correctly.
I would try to remake the material as well to see if it occurs again.

Lets us know how you get on

Thank you! I noticed that but thought it worked like a variable name…that the name didn’t really impact the way the shader worked. I know nothing about shaders, so lesson learned. Thank you!

It is just a variable, but Unity (the SpriteRenderer) is specifically looking for _MainTex so you have to match it

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms