Function _IrrBillBoardGroupShadows

au3Irr2

au3Irr2 Function Reference

_IrrBillBoardGroupShadows

Applies lighting to the billboards in a cluster of billboards.

#Include <au3Irrlicht2.au3>
_IrrBillBoardGroupShadows($h_BillboardGroup, $f_X, $f_Y, $f_Z, $f_Intensity, $f_Ambient)

 

Parameters

$h_BillboardGroup Handle to the Billboard Group as returned by _IrrAddBillBoardGroupToScene
$f_X X direction from which the light is arriving.
$f_Y Y direction from which the light is arriving.
$f_Z Z direction from which the light is arriving.
$f_Intensity Strength of the light
$f_Ambient Strength of ambient light in the billboard group

 

Return Value

Success: True
Failure: False

 

Remarks

This can be used for example to shade the particles in a group of billboards representing a cloud.

 

Related

_IrrAddBillBoardGroupToScene, _IrrAddBillBoardToGroup

 

Example


#include "au3Irrlicht2.au3"

Global $hBillboardGroup
Global $hBillboardTexture
Global $aBillboard[6]
Global $hCamera

_IrrStart()

$hBillboardGroup = _IrrAddBillBoardGroupToScene()
For $i = 1 To 5
    $aBillboard[$i] = _IrrAddBillBoardToGroup($hBillboardGroup, 150, 100, -450 + ($i * 150), 0, 400, 0, 255, 255, 255, 255)
Next
_IrrBillBoardGroupShadows($hBillboardGroup, 1, 0, 0, 2.0, 1.7)
$hBillboardTexture = _IrrGetTexture("./media/au3irr2_logo.jpg")
_IrrSetNodeMaterialTexture($hBillboardGroup, $hBillboardTexture, 0)
_IrrSetNodeMaterialFlag($hBillboardGroup, $IRR_EMF_LIGHTING, $IRR_OFF)

$hCamera = _IrrAddFPSCamera($IRR_NO_OBJECT, 100.0, 0.1)
_IrrSetCameraClipDistance($hCamera, 128000)

_IrrHideMouse()

While _IrrRunning() And Sleep(10)
    _IrrBeginScene(0, 0, 255)
    _IrrDrawScene()
    _IrrEndScene()
WEnd