#Outline shader coloring whole rest of sprite white in play mode, looks normal in edit and in graph

1 messages · Page 1 of 1 (latest)

serene zealot
#

anyone know why?

#

as you can see it looks normal in the preview

vestal shale
#

Does the sprite have an alpha channel?

serene zealot
#

this is in edit mode

vestal shale
#

Can you share a higher res screenshot of the shader graph? I can't see the nodes text in your screenshot.

gaunt latch
vestal shale
serene zealot
#

this is from a youtube tutorial, im pretty clueless with shaders

vestal shale
#

One thing that could go wrong is texture size. Unity could be doing some kind of atlassing in the play mode for example. Or maybe the sprite size != texture size. Maybe test with a non sprite texture.

#

Other than that, it would probably be easier to look at the frame debugger or maybe even PIX/renderdoc(potentially using a shader debugger).

serene zealot
#

ok, it works completely fine with a image on a canvas

#

in play mode as well

serene zealot
#

other sprites dont have a full white, just weird white splotches around