- Home /
Outline using 2 cameras in Lighweight SRP
Hello guys! Im currently trying to achieve outline effect, and found this awesome tutorial https://www.youtube.com/watch?v=SMLbbi8oaO8 It works perfectly, but only on core unity. When i switch to lightweight everything turns pinks as expected. Exploring tutorial and code, i found that only tag "Glowable " = True actually allows shader to use outline ( camera.SetReplacementShader(glowShader, "Glowable"); ) . So i tried on standart surface shader made from scratch, added this tag and it only works.However using lightweight, i copied whole lighweight simple lightning shader, added tag "Glowable", but outline didnt appear.
What am i doing wrong? Or in lightweight this effect should be achieved in another way?
You can download his project here https://github.com/Broxxar/GlowingObjectOutlines
To recreate shader, just install lightweight from packemanager, go to packes , lightweight srp, shaders and lighweigh simple lightning shader, i just copied it and iserted "Glowable" tag.
Your answer
Follow this Question
Related Questions
Exclude outline only, from fog, in custom toon shader. 1 Answer
Combine Shaders 0 Answers
sampler2d object has no methods 1 Answer
Is there a shader to draw outline of a solid sphere in unity 20.1.0a12 , that works in unity WebGL? 0 Answers
How to use Camera.RenderWithShader() to modify rendered image? 0 Answers