Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion / Idea  OBI7 Surface Texture Rendering (Lava) discussion
#4
(07-05-2024, 03:40 PM)spikebor Wrote: Wishlist for Foam shader graph and custom node next.

Unfortunately, the foam shader can't be done with ShaderGraph (I wish it could!) because ShaderGraph does not currently support channel masking: rendering only to a specific channel on a render target, like you can with shader lab's ColorMask instruction. This is required to blend foam with transparent fluids as we must only modify the fluid's alpha channel, leaving RGB color intact.

It also does not support blend modes, outputting fragment depth, indirect instancing, and lots other stuff that would allow us to use ShaderGraph for pretty much every shader in Obi. What's baffling to me is that most of these are trivial to support and they're very commonly used, so not sure why Unity hasn't added them yet.

So for the time being, some shaders must be handwritten since making them with SG is impossible Triste.
Reply


Messages In This Thread
RE: Bigger foam with Alpha dissolve - by spikebor - 08-05-2024, 04:47 AM
RE: Bigger foam with Alpha dissolve - by spikebor - 08-05-2024, 08:18 AM
RE: Bigger foam with Alpha dissolve - by spikebor - 08-05-2024, 08:30 AM
RE: Bigger foam with Alpha dissolve - by josemendez - 08-05-2024, 08:01 AM
RE: Bigger foam with Alpha dissolve - by spikebor - 08-05-2024, 08:35 AM
RE: Bigger foam with Alpha dissolve - by spikebor - 08-05-2024, 03:56 PM
RE: Bigger foam with Alpha dissolve - by spikebor - 10-05-2024, 08:57 AM
RE: Bigger foam with Alpha dissolve - by spikebor - 16-05-2024, 05:17 PM
RE: Bigger foam with Alpha dissolve - by spikebor - 21-05-2024, 03:04 PM