OpenGLContext.scenegraph.spherebackground
Gradient-sphere background node
Functions
Classes
class _SphereBackground(
object
):
bound
exposedField SFBool bound 0
groundAngle
exposedField MFFloat groundAngle []
groundColor
exposedField MFColor groundColor []
skyAngle
exposedField MFFloat skyAngle []
skyColor
exposedField MFColor skyColor
0.0, 0.0
]
compile(
self
,
mode
= None
)
Build the cached display list for this background object
Note: we store 2 display lists in the cache, but only return
one from the compile method. The second list is the final
rendering list, while the first is just the low-level rendering
code.
Gradient-sphere Background Node
This Background object (gradient sphere) provides a
smooth-shaded gradiant which can be useful for certain
abstract or low-overhead worlds. A sphere is created
which fades between a given set of colors at given
latitudes.
The SphereBackground node tries to follow the VRML97
Background node's semantics for the included fields
as much as possible.