Thread: color attribute
View Single Post
# 2 26-06-2003 , 10:19 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
It's a vector variable so you write it:
lamMAT_matrix.color = << r, g, b >>;

where r = red, g = green and blue ranging from 0 to 1.
Black would be << 0, 0, 0 >>, white would be << 1, 1, 1 >> and mid green would be << 0, 0.5, 0 >>. Get it?


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!