Hi,
I am new to Unity, I am working to write a ShaderLab
and I am wondering how can I send data from my C# script to that ShaderLab
.
- For that, I implemented a custom class that inherits from
RenderFeature
and an other that inherits fromRenderPass
, is this correct? - I do not need to create anything in properties block (in the ShaderLab) because i just want to inject from C# to ShaderLab, right? (I am trying to mimic the Unreal Engine workflow, by setting
shader_parameters
and then callIMPLEMENT_GLOBAL_SHADER
) - i saw some people using the
MonoBehaviour
class but my understanding is that only used if we have exposed params (in the properties block) - I’d like if someone points me to an example that has C# (RenderFeature + RenderPass) and a
Shaderlab
to understand more how it works. I cannot find anything useful and I am confused with Unity.
Thanks