02-05-2024, 06:16 PM
I found a culprit.
This Shader "Obi/URP/Fluid/FluidShading" is added to the AlwaysIncludedShaders list, but somehow still be skipped from build.
The result is this code still create a null material.
This Shader "Obi/URP/Fluid/FluidShading" is added to the AlwaysIncludedShaders list, but somehow still be skipped from build.
The result is this code still create a null material.
Code:
if (fluid_Material == null) fluid_Material= FluidRenderingUtils.CreateMaterial(Shader.Find("Obi/URP/Fluid/FluidShading"));