public class LightModel extends java.lang.Object implements ILightModel
| Modifier and Type | Field and Description |
|---|---|
float[] |
ambient |
float[] |
attenuation |
LightAttenuationFunction |
attenuationFunction |
float[] |
diffuse |
float[] |
positionOrDirection
Light position or direction in world space
|
float[] |
specular |
float |
spotCutoff |
float[] |
spotDirection
Spot direction in world space
|
float |
spotExponent |
| Constructor and Description |
|---|
LightModel() |
LightModel(LightAttenuationFunction attenuationFunction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getLightIntensityAt(ILight l,
IVolume<?> volume) |
LightType |
getLightType() |
int |
getMaxNumLights() |
void |
reset() |
boolean |
setLightProperties(ILight light,
boolean eyeSpace)
Set this
ILightModel properties from the specified ILight |
boolean |
setLightProperty(LightProperty property,
float f0,
float f1,
float f2,
float f3) |
public final float[] ambient
public final float[] diffuse
public final float[] specular
public final float[] positionOrDirection
public float spotCutoff
public final float[] spotDirection
public float spotExponent
public float[] attenuation
public final LightAttenuationFunction attenuationFunction
public LightModel()
public LightModel(LightAttenuationFunction attenuationFunction)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void reset()
public LightType getLightType()
public int getMaxNumLights()
getMaxNumLights in interface ILightModelpublic float getLightIntensityAt(ILight l, IVolume<?> volume)
getLightIntensityAt in interface ILightModelpublic boolean setLightProperties(ILight light, boolean eyeSpace)
ILightPropertyReceiverILightModel properties from the specified ILightsetLightProperties in interface ILightPropertyReceiverlight - the ILight to get the property values fromeyeSpace - TODOpublic boolean setLightProperty(LightProperty property, float f0, float f1, float f2, float f3)
setLightProperty in interface ILightPropertyReceiverproperty - the LightProperty to setf0 - the first vector component value, or 0 if not applicablef1 - the second vector component value, or 0 if not applicablef2 - the third vector component value, or 0 if not applicablef3 - the fourth vector component value, or 0 if not applicableILightPropertyReceiverBonzai 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