Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Build doesn't match editor look
#6
(05-09-2022, 04:19 PM)asama Wrote: Awesome, thanks! Another issue that I've been having is that the FluidShader is giving me an error and not rendering, so I haven't been able to use it.

Here's the error I'm getting if I use the FluidShader in any emitter:

RenderingCommandBuffer: invalid pass index 1 in DrawMesh
UnityEngine.GUIUtilityLenguarocessEvent (int,intptr,bool&)

Thank you.

The FluidShader is, as the name implies, used to render fluid. It cannot be used in a ObiParticleRenderer, you can only use particle shaders there. It's kinda like using a bloom shader to render the surface of an object, it doesn't make much sense since they're designed for different purposes.

FluidShader is used internally by the ObiFluidRenderer component to render the fluid, you don't need to do anything to use it or place it anywhere. See:

http://obi.virtualmethodstudio.com/manua...ering.html
http://obi.virtualmethodstudio.com/manua...ering.html

(05-09-2022, 04:19 PM)asama Wrote: The ParticleShader works fine though, would the default particle shader work with the changes you made?

Particle and fluid rendering are two completely different things, the patch I provided doesn't contain any changes to particle rendering. It will continue to work as it did.
Reply


Messages In This Thread
Build doesn't match editor look - by asama - 04-09-2022, 08:05 PM
RE: Build doesn't match editor look - by asama - 05-09-2022, 03:15 PM
RE: Build doesn't match editor look - by asama - 05-09-2022, 04:19 PM
RE: Build doesn't match editor look - by josemendez - 05-09-2022, 04:31 PM
RE: Build doesn't match editor look - by asama - 05-09-2022, 09:18 PM
RE: Build doesn't match editor look - by asama - 06-09-2022, 09:27 AM
RE: Build doesn't match editor look - by asama - 07-09-2022, 02:34 PM