![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | akirahinoshiro |
Hi,
I try to do some flickering camp fire.
The light itself is somewhat changing the energy.
To make it more realistic I want some moving shadows on top.
So what I want is some slightly moving light source around the parent position.
What I have is a constantly (somewhat random) translating and moving away light source.
extends Spatial
func _ready():
pass
func _process(_delta):
$light.light_energy = .5 + randf()*.5+.5
$light.translate(Vector3(randf()*.01,0+randf()*.01,0+randf()*.01))
Thanks for any advice
PS: using Godot 3.2.1