19-01-2024, 09:34 AM
(This post was last modified: 19-01-2024, 09:34 AM by josemendez.)
(19-01-2024, 01:03 AM)Memenaar Wrote: I tried changing the shader used by the Particle Renderer to the Particle Shader found in Assets/Obi/Resources/ObiMaterials/URP/, but this likewise had no effect.
Using the "ParticleShaderURP" shader found in /Obi/Resources/ObiMaterials/URP/ should work.
From your screenshot however, it looks like your game is 2D, is there any chance you're using URP's 2D renderer instead of the regular renderer? If that's the case, the built-in particle shader won't work as-is (since the 2D lighting system works in a completely different way to all other pipelines in Unity) and you must slightly modify it:
Open up /Obi/Resources/ObiMaterials/URP/ParticleShaderURP.shader and in line 15-ish, replace:
"LightMode" = "UniversalForward"
with
"LightMode" = "Universal2D"
This change alone should allow your particles to render in 2D, even though directional lighting will be wrong (again, because 2D lighting works in a completely different way than Unity's usual lighting pipeline). You can modify the shader further to fit your rendering style, by for instance removing directional lighting or making it toon-like.
let me know if I can be of further help,
kind regards