"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
Host-API Lua / Python



Back to Homepage
Back to Developer's Guide Index

HYP_LensFlares Library


Description
Lens flares library

Number of functions: 5

HYP_LensFlares.Init

Description
Initializes the lens flares system.

Languages: Lua

Code sample :

HYP_LensFlares.Init()


HYP_LensFlares.Deinit

Description
Deinitializes the lens flares system.

Languages: Lua

Code sample :

HYP_LensFlares.Deinit()


HYP_LensFlares.AddFlare

Description
Adds a flare texture.

Languages: Lua

Parameters
  • textureId [INTEGER]: flare's texture identifier
  • size [REAL]: flare's size
  • position [REAL]: flare'sposition. The position is relative to screen center and lies on a line that starts at the light source and passes through screen center.
  • r, g, b, a [REAL]: flare's color.

    Code sample :

    HYP_LensFlares.AddFlare(flareTexId01, 10.0, -0.2, 0.8, 0.8, 0.6, 0.5)
    HYP_LensFlares.AddFlare(flareTexId02, 4.0, 0.3, 0.4, 0.4, 0.9, 0.5)


    HYP_LensFlares.AddFlaresSource

    Description
    Adds a source object for lens flares generation.

    Languages: Lua

    Parameters
  • objectId [INTEGER]: source object identifier

    Code sample :

    HYP_LensFlares.AddFlaresSource(lightId)


    HYP_LensFlares.SetIntensityFactor

    Description
    Sets intensity factor. Flare's color decreases when flare approaches screen's borders.

    Languages: Lua

    Parameters
  • factor [REAL]: intensity factor.

    Code sample :

    HYP_LensFlares.SetIntensityFactor(0.7)




  • Random Projects

    Gaussian Blur PostFX
    Gaussian Blur PostFX

    Dream Vision Effect
    Dream Vision Effect

    Chromatic Aberration
    Chromatic Aberration


    Random Code Samples

    Render to texture
    Render to texture

    Software Mesh Instancing
    Software Mesh Instancing

    Point Emitter
    Point Emitter



    (C)2009-2010 Geeks3D.com