How do materials and shaders work in graphics programming?

I stumbled upon a few videos about shaders and materials from The Cherno and my understanding is that materials are this sort of input that a shader takes to calculate an output instead of hard coding values into the shader so basically shaders become more flexible since you can control what their output is with […]

How do you supply custom reflections to a shader?

I’m using Unity with Amplify Shader Editor and/or Shader Graph, but willing to learn to write a shader if that’s what it takes to achieve what I need. I need to be able to supply my own reflection instead of using global illumination (or maybe the answer is to somehow override or edit the global […]

How do I add URP lighting reaction to the following handwritten shader?

I’m on Unity. I’m not very experienced with shaders nor shader graphs, but I managed to get this one to work on URP. Currently I’m changing the light intensity or brightness "manually" with the _LightIntensity variable. But this shader applied to a material in a sprite renderer is not being affected by URP 2D lights, […]