(godot3) projected textures and/or disco ball effect

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dodgyville
:warning: Old Version Published before Godot 3 was released.

Hi,

Is it possible to do a projected texture or mask a spotlight so only a pattern of light is projected onto other surfaces?

I’m trying to create a disco ball effect. My first and only idea was making a sphere with holes in it and putting a light inside it but honestly I don’t know why I ever thought that would work

disco fail

May be cheaper to fake it with meshes using semitransparent materials, like fake godrays.

eons | 2018-01-20 18:00

:bust_in_silhouette: Reply From: Zylann

If you want shadow projected from inside, you may try with either flipped normals, or reverse shadow culling. I see no reason why a sphere with holes on it would not project shadow^^ maybe shadows don’t work with double-sided materials, maybe you have to choose a side.