Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Particle Renderer not working on Rope in URP
#3
(19-01-2024, 09:34 AM)josemendez Wrote: 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

Thank you so much Jose, that worked perfectly.

I mostly just wanted to be able to see the particles in order to help internalize how they work, they'll be turned off for the actual gameplay. I'll keep the above in mind in case I ever need to show them in-game though.

Really appreciate it!
Reply


Messages In This Thread
RE: Obi Particle Renderer not working on Rope in URP - by Memenaar - 19-01-2024, 06:00 PM