Function _IrrAddSkyBoxToScene

au3Irr2

au3Irr2 Function Reference

_IrrAddSkyBoxToScene

Adds a skybox node to the scene.

#Include <au3Irrlicht2.au3>
_IrrAddSkyBoxToScene($h_UpTexture, $h_DownTexture, $h_LeftTexture, $h_RightTexture, $h_FrontTexture, $h_BackTexture)

 

Parameters

$h_UpTexture Handle of the top side texture
$h_DownTexture Handle of the bottom side texture
$h_LeftTexture Handle of the left side texture
$h_RightTexture Handle of the right side texture
$h_FrontTexture Handle of the front side texture
$h_BackTexture Handle of the back side texture

 

Return Value

success: Handle of the skybox node
failure: False

 

Remarks

A skybox is a huge hollow cube that encapsulates the entire scene and has a different texture applied to each of its six surfaces to represent a distant sky or matte scene.

 

Related

_IrrAddSkyDomeToScene

 

Example


#include <au3Irrlicht2.au3>

_IrrStart( )

local $nodeSkyBox = _IrrAddSkyBoxToScene( _
        _IrrGetTexture("./media/irrlicht2_up.jpg"), _
        _IrrGetTexture("./media/irrlicht2_dn.jpg"), _
        _IrrGetTexture("./media/irrlicht2_rt.jpg"), _
        _IrrGetTexture("./media/irrlicht2_lf.jpg"), _
        _IrrGetTexture("./media/irrlicht2_ft.jpg"), _
        _IrrGetTexture("./media/irrlicht2_bk.jpg"))

local $nodeCamera = _IrrAddFPSCamera()

WHILE _IrrRunning()
    _IrrBeginScene( 240, 255, 255 )
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()