How to use different Materials (Shaders) in subviewports ?
Asked Answered
P

3

0

Good morning,

I need to render my scene in a main Viewport and then in a SubViewport through a second camera. I would like the rendering on the second camera to be done with different materials (Shader), Is it possible, for a subviewport, to specify which materials are used for the models to be rendered ?

Thank you

Physoclistous answered 20/8, 2023 at 15:24 Comment(0)
S
0

Unfortunately this isn't currently possible. The workaround I'm using is to make duplicates of the MeshInstance on different layers with different materials, then set the culling mask on each camera so it can only see one layer.

Semela answered 9/10, 2023 at 17:9 Comment(0)
V
0

I am not sure I understood, can you show your scene ?
If I understood correctly you want an viewport to show your current scene in a different way, I use it a lot to show for example, a complex mini map, with different texture, if this is the case, you just create an new scene similar with your current scene and with different texture, render it in the viewport, and remotely move the objects to give an felling of it to be the same scene, even as its not.

Voice answered 9/10, 2023 at 22:17 Comment(0)
V
0

Also, something I just remember, is that there is an option to create an "new word instance" in the viewport, but I never use it.

Voice answered 9/10, 2023 at 22:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.