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](https://drive.google.com/file/d/1MJG9AvgfiCLh4GllE6oUbDRwKVvuO5G1/view?usp=sharing), if that helps.
Thanks!
: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