Game Development Community

Dynamically Changing Sun colors?

by Vincent BILLET · in Torque Game Engine Advanced · 04/18/2006 (9:26 am) · 3 replies

How can I change Sun and Ambiant colors for Sun Object ?

#1
04/18/2006 (10:52 am)
It tried this :
MySun.color = "1 0 0 1";
MySun.apply();

It works.... But

MySun.[b]ambiant[/b] = "1 0 0 1";
MySun.apply();
doesn't work ! Why is this a bug?
#2
04/18/2006 (11:05 am)
The variable is ambient not ambiant. See if that works.
#3
04/18/2006 (11:45 am)
Thank you... I have to change my glasses :)