IrrAddSkyDomeToScene

section index

## NAME

IrrAddSkyDomeToScene - Add a SkyDome-SceneNode

## SYNOPSIS

*SkyDomeSceneNode.l = IrrAddSkyDomeToScene(*texture.l, horiRes.l, vertRes.l, texturePercentage.d, spherePercentage.d )

## INPUTS

*texture.l | - | Texture for the dome.
horiRes.l | - | Number of vertices of a horizontal layer of the sphere.
vertRes.l | - | Number of vertices of a vertical layer of the sphere.
texturePercentage.d | - | How much of the height of the texture is used. Should be between 0 and 1.
spherePercentage.d | - | How much of the sphere is drawn. Value should be between 0 and 2, where 1
is an exact half | - | sphere and 2 is a full sphere.

## FUNCTION

Adds a skydome scene node to the scene graph. A skydome is a large (half-) sphere with a panoramic texture on the inside and is drawn around the camera position.

## RESULT

Pointer to a SceneNode

## EXAMPLE

       *sd_node.l = IrrAddSkyDomeToScene(*skyTexture,128,64, 1, 1 )