0 votes

For one of my games I want to add in a real-time mirror, and decided to take a Metal Gear Solid approach and have it so a duplicate character walks around behind a hidden layer with inverted y axis controls, and an object acts as a mask that shows whats behind the hidden layer, and the duplicate player giving off the illusion of reflection, but I'm not sure how to make this work. How would I?

in Engine by (48 points)

1 Answer

0 votes

Have you considered using a Viewport?

They seem designed to perform the function you want. You can even give them an optional world that they draw that isn't shared with other viewports. (Though in the case of a mirror I think you could use one to render to a target texture instead of using a rendering technique from the Playstation era.)

https://docs.godotengine.org/en/stable/classes/class_viewport.html

by (856 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.