User Guide

264 APPENDIX E
fog.active = true;
color
The color Vector of the fog.
// Bluish fog
fog.color = [.8, .8, 1];
dropOff
The fog drop-off style (0=hard; 1=linear; 2=1/Z-squared).
// Linear style
fog.dropOff = 1;
far
The distance at which objects are completely obscured by the fog.
fog.far = 100;
near
The distance at which the fog starts.
fog.near = 10;
Glare
The glare effect creates a diffuse glow over and around an object in the Explorer view if the object was marked with
emits light” in the Builder. It creates the impression that the light sources are very bright, causing optical effects
within the virtual camera that approximate lens fl are or glare in a real-world camera. This will work for constant
color and texture mapped light sources.
Global Properties
glareEffect
Represents the glare SceneGroup for the camera.
// Display current glare settings
dump(glare);
Properties
active
Specifi es whether the glare effect is active (default is false)
glareEffect.active = true;
brightness
Controls the visible brightness of the glare, which also refl ects the color of the glare and the color of the light
object. The default brightness value is 1.0, with a range limitation of 0.0 to 2.0. Changing the brightness value
does not slow down rendering, allowing for animated brightness effects such as pulsating glare.