LightGroups is a concept that allows the user to assign multiple Snappers that has lights into groups, and then control the light parameters, such as brightness, color, and shadows for the entire group, rather than having to select one Snapper at a time and then try to apply roughly the same brightness.
LightGroups object is stored in
Space which contains all the individual
LightGroup objects which are created from any
Snapper that uses lights. Only
Snappers have the inbuilt ability to do so with
LightGroup object mainly consists of a key that is used to uniquely identify lights that are intended to have the same properties. Each property within a
LightGroup is defined in the
/** * Properties. */ public GProp props;
which contains again a key to identify the type of property.
If two different
LightGroups were selected, only the main
Snapper within the
Selection will populate the Light Settings dialog:
But if different
LightGroups are grouped together, all of the properties from the different
LightGroups will populate the Light Settings dialog. When a user changes a
LightGroups that share that
GProp key will change along:
GProp(i.e. Brightness), then make sure to use the same key for its construction (i.e. "intensity").
This is so that it would share the same property as the lights provided in our core code (refer to the example's
Please sign in to leave a comment.