Black viewport texture

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

I’m trying to follow this tutorial in the documentation, but my viewport texture is just black.

The color rect appears blank even after pasting the shader from the documentation, and when I specify the Viewport in the ViewportTexture, this is printed in the terminal:

   At: scene/main/viewport.cpp:127.```

What am I doing wrong? [Here's my project](, if that helps.
:bust_in_silhouette: Reply From: rakkarage
- Give the MeshInstance a new SpatialMaterial
  - Set flags transparent and unshaded maybe
  - Set albedo texture to new viewport texture and pick your viewport
    - Error so set Resource->LocalToScene first
  - Clear/reset geometry material override