- Home /
how to combine either shaders or materials
suppose, I want to achieve these two effects. 1)lighting 2) sinusoidally glow in some parts, defined by splat map.
I have access to these effects individually. as Unity standard shader and my custom shader. I do not know how to use both effect on the same object.
do you have to assign multiple materials? because i fear, if combined shaders is an option, I will lose control over the 2nd effect.,suppose, I want to achieve these effects on an object. 1) lighting. 2) object glowing sinusoidally at specific parts of the object, defined by a splat map.
I have access to these separately as unity pbr shader and my custom shader. but I do not know how to apply both on the same object. can I do this by creating two materials, add somehow blend them? or I can create a shader that can combine them? or any other solution?
Your custom shader should still support lighting. Is it not responding to lighting in your scene?
Answer by Isaac_Marovitz · Apr 21, 2019 at 02:14 PM
You can use a Mesh Renderer component to apply multiple materials to one object. Each material can use each shader.
Your answer
![](https://koobas.hobune.stream/wayback/20220612195916im_/https://answers.unity.com/themes/thub/images/avi.jpg)