Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
White Particles URP
#1
In this post https://obi.virtualmethodstudio.com/foru...-3520.html you helped Locque create particles with a solid white color using the Built-In Pipeline.
But how can I do this in URP?
I tried taking the shader file you gave him and splicing the changes into a copy of ParticleShaderURP.shader but couldn't get it to work.
The pipelines are just too different.

Thanks
Reply
#2
(22-06-2024, 05:22 AM)KleptoLizard Wrote: In this post https://obi.virtualmethodstudio.com/foru...-3520.html you helped Locque create particles with a solid white color using the Built-In Pipeline.
But how can I do this in URP?
I tried taking the shader file you gave him and splicing the changes into a copy of ParticleShaderURP.shader but couldn't get it to work.
The pipelines are just too different.

Thanks

Hi,

The shader code in that post has got nothing to do with fluid color, its purpose is to change the way shadowmaps are filtered.

White fluid does not require any modifications to the asset or its shaders. It is done by simply changing the blending mode in the ObiFluidRenderer/RendererFeature (the default is multiplicative, so background color x white = background color. Just change it to alpha or additive (see “blend source/dest” in the manual: https://obi.virtualmethodstudio.com/manu...ering.html ). You can also just make the fluid opaque. In the above post, Locque was looking for a completely transparent, white fluid, which is not physically possible: for an object to reflect any colored light, it cannot be fully transparent. I explain this to him in the post.

Let me know of you need further help with this,

Kind regards
Reply
#3
Thank you for your quick response.

I see now I was meddling in vain with the component on the camera.
For those suffering a similar issue, there's an identical interface in your URP Asset_Renderer after it's been assigned.
This controls things globally rather than per camera/scene.

Cheers
Reply