public enum LightProperty extends java.lang.Enum<LightProperty>
| Enum Constant and Description |
|---|
ambient
Ambient (R,G,B)
|
color
(R,G,B)
|
diffuse
Diffuse (R,G,B)
|
exponentialAttenuation
(a,b,c) the attenuation parameters
Attenuation formula: 1 / (a + b * d + c * d²) with d the distance |
linearAttenuation
(k) the attenuation parameter
Attenuation formula: max(1 - k * d, 0) with d the distance |
positionOrDirection
(posX, posY, posZ, posW) in world space
|
positionOrDirectionMv
(posX, posY, posZ, posW) in eye space
|
screenProj
(screenXPos, screenYPos, screenWidth, screenHeight)
The projection is updated in ILight.updateToView(com.bonzaiengine.camera.View) |
shininess |
specular
Specular (R,G,B)
|
spotCutoff
Spot cut off in degrees
|
spotDirection
(dirX, dirY, dirZ) in world space
|
spotDirectionMv
(dirX, dirY, dirZ) in eye space
|
spotExponent
Spot exponent in range [0;128]
|
| Modifier and Type | Method and Description |
|---|---|
static LightProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightProperty color
public static final LightProperty ambient
public static final LightProperty diffuse
public static final LightProperty specular
public static final LightProperty positionOrDirection
public static final LightProperty positionOrDirectionMv
public static final LightProperty spotCutoff
public static final LightProperty spotDirection
public static final LightProperty spotDirectionMv
public static final LightProperty spotExponent
public static final LightProperty shininess
public static final LightProperty exponentialAttenuation
public static final LightProperty linearAttenuation
public static final LightProperty screenProj
ILight.updateToView(com.bonzaiengine.camera.View)public static LightProperty[] values()
for (LightProperty c : LightProperty.values()) System.out.println(c);
public static LightProperty valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com