public abstract class DeferredLight extends java.lang.Object implements ILight
| Modifier and Type | Field and Description |
|---|---|
boolean |
clipped
True when light is clipped (out of screen)
|
Vec3 |
color
Color of the light
|
boolean |
culled
True when light is clipped (out of screen)
|
Vec3 |
position
Position
|
float |
radius
Radius - Max lighting distance (no lighting beyond that)
|
Rectangle |
screenProj
Screen space projection area (x, y, w, h)
|
float |
shininess
Shininess property of the light
|
float |
spotCutoff
Spot cut off in range of [0;90] degrees, 180 for omni-directional (default)
|
Vec3 |
spotDirection
Spot direction
|
| Constructor and Description |
|---|
DeferredLight() |
| Modifier and Type | Method and Description |
|---|---|
LightType |
getLightType() |
boolean |
getProperty(ILightPropertyReceiver lm,
LightProperty p) |
IVolume |
getVolume(int bvOptions) |
boolean |
isCulled() |
boolean |
isLightActive()
Active property composite of the enable, visibility, culling, ... states.
|
boolean |
isVisible() |
static boolean |
projectSphereToScreenSpace(Rectangle dst,
View view,
Vec3 positionMv,
float radius) |
void |
setCulled(boolean clipped) |
void |
updateToView(View view)
Update the eye space position/direction with the specified
View |
public final Vec3 position
public float radius
public float spotCutoff
public final Vec3 spotDirection
public final Vec3 color
public float shininess
public final Rectangle screenProj
public boolean clipped
public boolean culled
public boolean isCulled()
public void setCulled(boolean clipped)
public boolean isLightActive()
ILightisLightActive in interface ILightILight is activepublic final LightType getLightType()
getLightType in interface ILightLightType of this ILightpublic IVolume getVolume(int bvOptions)
getVolume in interface IBoundablebvOptions - bounding volume options.BoundingBox or BoundingSphere depending on options.VolumeOptions,
Box,
Sphere,
Cylinder,
Capsulepublic boolean getProperty(ILightPropertyReceiver lm, LightProperty p)
getProperty in interface ILightlm - the ILightModel to set the property top - a LightPropertypublic final void updateToView(View view)
ILightViewupdateToView in interface ILightBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com