How do you use ViewportTexture in Visual Shader?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlphinAlbukhari

Why can’t I use ViewportTexture on the Texture node? Even though I have set it as Local to scene
Watch the video here

I am also having this issue. I have the Shader set to local to scene as well as the ShaderMaterial. Definitely seems like a bug.

dgreenheck | 2020-07-19 15:59

:bust_in_silhouette: Reply From: dgreenheck

I found a way around this. If use use a TextureUniform node instead of Texture, you can assign the ViewportTexture in the Shader Param section of the side bar. You’ll need to wire the rgb output of the TextureUniform node to Albedo for the params to show up.