- Home /
how to flip the camera?
dear all. i have a car (done) i want create a mirror (flip) but if i flip it the mirror it will error.
function Start(){
var mat : Matrix4x4;
mat = camera.projectionMatrix;
mat *= Matrix4x4.Scale(new Vector3(-1, 1, 1));
//mat[0, 0] = -mat[0, 0];
camera.projectionMatrix = mat;
}
there are two picture before and after i attached the code to the camera (untagged & no name).
after.jpg
(39.6 kB)
before.jpg
(37.0 kB)
Comment
Your answer
Follow this Question
Related Questions
Flip a render texture? 2 Answers
Flip The Entire Output in App 0 Answers
Mario Kart Wii Physics 1 Answer
Grey out part of the scene from rendering 2 Answers
Too many texture interpolators would be used for ForwardBase pass (again) 1 Answer