So i’ve looked around for all kinds of mirror shaders online,
im making a horror game so the ambient color is set to pitch black,
and somehow the mirror reflection depends on the ambient color,
can someone help me write the shader ignore the ambient color and just
render perfectly even if the ambient is set to pitch black?
You can do this in couple of ways but i dont think this makes sense as the purpose of a mirror is to reflect the light and it will look pretty fake when environment is pitch black but the mirror is shining.
Anyways;
1- i dont know what mirror shaders are online but they probably use second camera to render the reflection to a render texture.
While this rendering is happening, you can increase the ambience or anything else that matters to what you desire, render the reflection, and then turn the values down again to dark.
2- You can use some image processing and increase the luminance of the above mentioned render texture without the need to change lighting back and forth.
3- you can use an image effect on the mirror only, practically the same thing as above.
4- You can fake setup the reflection with mirrored objects with unlit shaders.
5- You can use a replacement shader to render the objects being reflected before rendering the reflection texture, same thing as one of the above.