|
The GradientBackground allows for creating horizontal or vertical gradient background that is static relatively to the camera movements.
EXTERNPROTO GradientBackground [
eventIn SFBool set_bind
exposedField MFColor color
exposedField MFFloat colorPosition
exposedField SFString type
eventOut SFBool isBound
]
[
"urn:inet:parallelgraphics.com:cortona:GradientBackground"
"http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
#GradientBackground"
]
The set_bind field works in the same way as the set_bind field of the Background node.
The color field specifies two or more colors of the gradient.
The colorPosition field specifies the positions of colors listed in the color field.
If only two colors are used to create the gradient, the colorPosition field is not necessary.
If the value of the colorPosition field is not specified, the colors are arranged uniformly.
The type field specifies whether the gradient is horizontal or vertical.
The possible values are "LINEAR-VERTICAL" (default) and "LINEAR-HORIZONTAL".
The isBound field works in the same way as the isBound field of the Background node.
Example
|