Geeks3D latest news

FurMark
Current Version: 1.9.2
»FurMark homepage
»FurMark 1.9.x Submissions

GPU Caps Viewer
Current Version: 1.15.0
»GPU Caps Viewer homepage
»GPU DB Submissions

PhysX FluidMark
Current Version: 1.4.0
»FluidMark homepage
»FluidMark 1.4.x Submissions

GeeXLab
Current Version: 0.3.3
»GeeXLab homepage
»GeeXLab Overview

GPU Shark
Current Version: 0.5.5
»GPU Shark homepage

TessMark
Current Version: 0.3.0
»TessMark homepage

ShaderToyMark
Current Version: 0.3.0
»ShaderToyMark homepage
»ShaderToyMark Scores

Blogs
»JeGX's HackLab

Geeks3D's Articles
»GPU Memory Speed Demystified

»Multi-Threading Programming Resources

»GeForce and Radeon OpenCL Overview

»How to Get your Multi-core CPU Busy at 100%

»How To Make a VGA Dummy Plug

»Night Vision Post Processing Filter


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples

Language

Language:

3D Graphics Search Engine:

The Geeks Of 3D


 
oZone3D.Net - Demoniak3D Developer Guide


» Back To Index

Demoniak3D/LUA API: lens flares library

The HYP_LensFlares mamages the lens flares system.
HYP_LensFlares.Init
HYP_LensFlares.Deinit
HYP_LensFlares.AddFlare
HYP_LensFlares.AddFlaresSource
HYP_LensFlares.SetIntensityFactor

Init

Init allows to init the lens flares system.
Syntax
HYP_LensFlares.Init();

Deinit

Deinit allows to stop lens flares system.
Syntax
HYP_LensFlares.Deinit();

AddFlare

AddFlare allows to add a flare.
Syntax
HYP_LensFlares.AddFlare( texture_name|tid, size, position, r, g, b, a);
  • texture_name - [STR127] - name of the flare's texture.
  • tid - [INTEGER] - identifier of the flare's texture.
  • size - [REAL] - flare size factor.
  • position - [REAL] - flare relative position. 0.0 sets the flare at the screen center, -1.0 sets the flare on the light source.
  • r, g, b, a - [REAL] - flare's color.

AddFlaresSource

AddFlaresSource allows to add a light source for flares generation.
Syntax
HYP_LensFlares.AddFlaresSource( name|tid);
  • name - [STR127] - light source name.
  • tid - [INTEGER] - light source identifier.

SetIntensityFactor

SetIntensityFactor allows to set the flares's intensity factor. Usually, this factor is set to screenWidth/2.
Syntax
HYP_LensFlares.SetIntensityFactor( factor );
  • factor - [REAL] - intensity factor



Page generated in 0.0555260181427 seconds.