Class: skydome

A special hemispheric mesh that has a special texture setup and can be set as background of a scene. Rendered after clearcolor/skybox. Special effects are possible using material and shaders. Skydome needs its own sun color, as sometimes the visible sun might differ from what you use for the scene.
Alternatively you can render a custom mesh, which might be better for your needs. The cloudmatrix effect is very costly as it generates an infinite sky, a custom mesh is a cheap solution.

Hierarchy

o-+ l3dlist
  o-+ skydome

Methods:

Method overview:


new (meshid / float maxfov, int density,[matsurface])
returns: (skydome)
creates a new skydome that allows the given maximum fov for an aspect of 1, with density times separations along x and y. Alternatively pass a meshid, material is derived from it. The model must not be bigger than 1024 in radius. When model is used lighting will be deactivated.
color (skydome,[float r,g,b,a])
returns: ([float r,g,b,a])
sets or returns vertexcolor
delete (skydome)
returns: ()
deletes the skydome
deleteall ()
returns: ()
deletes all existing skydomes
matsurface (skydome,[matsurface])
returns: ([matsurface])
sets or returns matsurface
movescale (skydome,[float x,y,z])
returns: ([float x,y,z])
sets or returns how much movement along each axis is taken into account for model rendering
pos (skydome,[float x,y,z])
returns: ([float x,y,z])
sets or returns position offset, only when model is used.
rebuild (skydome,float maxfov, int steps)
returns: ()
rebuilds the mesh with given values
sunambient (skydome,[float r,g,b,a])
returns: ([float r,g,b,a])
sets or returns sun ambient color
sundiffuse (skydome,[float r,g,b,a])
returns: ([float r,g,b,a])
sets or returns sun diffuse color
sundistance (skydome,[float])
returns: ([float])
sets or returns the distance sun has to the dome (+ means inside, - is outside of dome). Dome radius is 1024.
sunsize (skydome,[float])
returns: ([float])
sets or returns size of the sun for the sunscreenmatrix.

Inherited Methods:

From l3dlist

reinit