- Home /
How to handle side mirror reflections for a car?
Hello - I'm trying to create a side mirror reflection for a car. I've tried using the shader and C# script found here: http://wiki.unity3d.com/index.php/MirrorReflection4
In the article however, it says that the reflection happens in the "up" or "y" axis of the object - I want to modify the script so that it is reflecting in the "x" axis, e.g. behind vs. from the top. Is there anyway to do this? I'm unable to rotate the side mirror, since it belongs to the "body" of my car.
I apologize if I'm missing something, I'm relatively new to game development.
$$anonymous$$aybe you don't need to have the mirror as part of the car mesh. I would make quad or another flat mesh with this shader separated of the car mesh and then you are free to do anything you want with it.
Answer by NorthStar79 · Aug 10, 2017 at 07:48 AM
i suggest using RenderTextures instead of creating reflective mirror shaders.
Answer by TauseefCVS · Aug 10, 2017 at 08:05 AM
you can use Reflection probe in your Mirror game object.
Your answer
Follow this Question
Related Questions
Complete Flat Mirror Reflection shader 0 Answers
Generating a texture through Graphics.Blit with shadergraph 0 Answers
Unity 5 Deferred Stencil Buffer Usage 1 Answer
Black Texture on Initial Load 1 Answer
Need help with a shader that uses additive particle blending (worked in 4.6; broken in unity 5): 0 Answers