|
Hi According to the scripting reference, using the spotAngle parameter should set the cookie size on directional lights, but it doesn't seem to work. Setting the spotAngle within a script has no effect on the light and in fact
always shows 1, even if the cookie size is set differently in the inspector. Is there a workaround to set the cookie size programmatically? Thanks
(comments are locked)
|
|
Directional lights don't use the spot angle parameter, that's only for spotlights. Use cookie size! Thanks, but the manual states that you use the spotAngle to alter the cookie size of directional lights: "var spotAngle The light's spotlight angle in degrees Used primarily for Spot lights. Alters the light cookie size on Directional lights. No effect for Point light" there doesn't seem to be a cookie size variable.
Jan 15 '11 at 03:43 PM
Steve Edwards
(comments are locked)
|
