|
XJRT Rendering Toolkit 1.0b06 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.autochthonous.graphics.rt.objects.Fog
A fog atmosphere. By default it affects all objects in the scene, unless the choice is constrained by the using the addAffected method.
Example:
<Fog color="1.0, 1.0, 1.0" fogFactor="0.001" rFactor="0.03"/>
Document Type Definition:
<!ENTITY %Float "CDATA">
<!ENTITY %Color3f "CDATA">
<!ELEMENT PointLight EMPTY>
<!ATTLIST PointLight
color %Color3f; "1, 1, 1"
fogFactor %Point3f; "0.001"
rFactor %Float "0.03">
Constructor Summary | |
Fog(Color3f col,
float fogFactor)
Create a fog object with the standard rFactor of 0.03. |
|
Fog(Color3f col,
float fogFactor,
float rFactor)
|
Method Summary | |
void |
addAffected(Traceable obj)
Add an affected region to the fog. |
AtmosphereData |
getAtmosphereData(Hit hit,
Illuminated world)
Calculate the atmosphere data according to Beer's law of fog and haze. |
static Fog |
getInstance(RMLReader in)
|
void |
transform(Transform trans)
transform the location of the fog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Fog(Color3f col, float fogFactor)
col
- fogFactor
- public Fog(Color3f col, float fogFactor, float rFactor)
Method Detail |
public static Fog getInstance(RMLReader in) throws java.io.IOException
java.io.IOException
public void transform(Transform trans)
transform
in interface Atmosphere
public void addAffected(Traceable obj)
addAffected
in interface Atmosphere
public AtmosphereData getAtmosphereData(Hit hit, Illuminated world)
getAtmosphereData
in interface Atmosphere
Atmosphere.getAtmosphereData(org.autochthonous.graphics.rt.Hit, org.autochthonous.graphics.rt.Illuminated)
|
XJRT Rendering Toolkit 1.0b06 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |