Basic 3D project using undocumented tint and light?

The default ‘Basic 3D project’ (in 1.6.2) contains:

go.set("#cube", "tint", vmath.vector4(1,1,0,1))
go.set("#cube", "light", self.light)

However “tint” and “light” are not listed as properties of model in the documentation:

Please can someone tell me what is occurring here, my miss-understanding and/or where this is documented?
Thanks.

No they are constants defined on the material and not properties. Get/set will try to set material constants if no such properties are found

1 Like

Doh, thanks, I should know this!

2 Likes