Function _IrrAddLensFlare

au3Irr2

au3Irr2 Function Reference

_IrrAddLensFlare

Adds a lens flare patch object to the scene, this object simulates the effect of bright lights on the optics of a camera.

#Include <au3Irrlicht2.au3>
_IrrAddLensFlare($h_Texture)

 

Parameters

$h_Texture Handle to texture (image containing a series of 128x128 images representing stages of the the lens flare).

 

Return Value

Success: Handle to a flare node
Failure: False and @error 1

 

Remarks

[todo]

 

Related

_IrrSetFlareScale, _IrrGetTexture

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $hFlare = _IrrAddLensFlare(_IrrGetTexture( "./media/flares.jpg" ))
_IrrSetNodePosition($hFlare, 300,100,1000 )

_IrrAddFPSCamera()
_IrrHideMouse()

While _IrrRunning()
    _IrrBeginScene( 180, 225, 255 )
    _IrrDrawScene()
    _IrrEndScene()
WEnd

_IrrStop()