de.grogra.gpuflux.scene.light
public class FluxLightBuilder extends java.lang.Object implements LightVisitor
| Constructor and Description |
|---|
FluxLightBuilder(boolean radiation) |
FluxLightBuilder(Graph graph,
java.util.AbstractList<LightNode> lights) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildLight(Light s,
Matrix4d transformation) |
void |
buildLights(Graph graph,
java.util.AbstractList<LightNode> lights) |
FluxLight |
constructLight(Light s) |
void |
finnish(boolean sampleExplicit,
ViewConfig3D view) |
float[] |
getCummulativePowerBuffer(Environment env) |
java.util.Vector<FluxChannelMap> |
getLightChannels() |
int |
getLightCount() |
java.util.Vector<FluxLight> |
getLights() |
java.util.Vector<FluxShader> |
getLightShaders() |
int |
getSampleCount() |
FluxLight |
getSky() |
static boolean |
isOrthogonalMatrix(Matrix3f m)
Verifies whether this matrix is Orthogonal .
|
void |
serialize(ComputeByteBuffer light_out,
ComputeByteBuffer offset_out) |
void |
serializeCummulativePowerBuffer(ComputeByteBuffer out,
Environment env) |
void |
visit(AmbientLight ambientLight) |
void |
visit(DirectionalLight directionalLight) |
void |
visit(Light light) |
void |
visit(Parallelogram parallelogram) |
void |
visit(PointLight pointLight) |
void |
visit(Sky sky) |
void |
visit(SpotLight spotLight) |
void |
visit(SunSkyLight sunSkyLight) |
public void finnish(boolean sampleExplicit,
ViewConfig3D view)
public float[] getCummulativePowerBuffer(Environment env)
public java.util.Vector<FluxChannelMap> getLightChannels()
public int getLightCount()
public java.util.Vector<FluxLight> getLights()
public java.util.Vector<FluxShader> getLightShaders()
public int getSampleCount()
public FluxLight getSky()
public static final boolean isOrthogonalMatrix(Matrix3f m)
public void serialize(ComputeByteBuffer light_out, ComputeByteBuffer offset_out) throws java.io.IOException
java.io.IOExceptionpublic void serializeCummulativePowerBuffer(ComputeByteBuffer out, Environment env) throws java.io.IOException
java.io.IOExceptionpublic void visit(AmbientLight ambientLight)
visit in interface LightVisitorpublic void visit(DirectionalLight directionalLight)
visit in interface LightVisitorpublic void visit(Light light)
visit in interface LightVisitorpublic void visit(Parallelogram parallelogram)
visit in interface LightVisitorpublic void visit(PointLight pointLight)
visit in interface LightVisitorpublic void visit(Sky sky)
visit in interface LightVisitorpublic void visit(SpotLight spotLight)
visit in interface LightVisitorpublic void visit(SunSkyLight sunSkyLight)
visit in interface LightVisitor