de.grogra.gpuflux.scene.light
Class FluxLightBuilder
java.lang.Object
de.grogra.gpuflux.scene.light.FluxLightBuilder
- All Implemented Interfaces:
- LightVisitor
public class FluxLightBuilder
- extends java.lang.Object
- implements LightVisitor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FluxLightBuilder
public FluxLightBuilder()
FluxLightBuilder
public FluxLightBuilder(Graph graph,
java.util.AbstractList<LightNode> lights)
buildLight
public void buildLight(Light s,
Matrix4d transformation)
buildLights
public void buildLights(Graph graph,
java.util.AbstractList<LightNode> lights)
constructLight
public FluxLight constructLight(Light s)
finnish
public void finnish(boolean sampleExplicit,
ViewConfig3D view)
getCummulativePowerBuffer
public float[] getCummulativePowerBuffer(Environment env)
getLightChannels
public java.util.Vector<FluxChannelMap> getLightChannels()
getLightCount
public int getLightCount()
getLights
public java.util.Vector<FluxLight> getLights()
getLightShaders
public java.util.Vector<FluxShader> getLightShaders()
getSampleCount
public int getSampleCount()
getSky
public FluxLight getSky()
serialize
public void serialize(ComputeByteBuffer light_out,
ComputeByteBuffer offset_out)
throws java.io.IOException
- Throws:
java.io.IOException
serializeCummulativePowerBuffer
public void serializeCummulativePowerBuffer(ComputeByteBuffer out,
Environment env)
throws java.io.IOException
- Throws:
java.io.IOException
visit
public void visit(AmbientLight ambientLight)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(DirectionalLight directionalLight)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(Light light)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(Parallelogram parallelogram)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(PointLight pointLight)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(Sky sky)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(SpotLight spotLight)
- Specified by:
visit
in interface LightVisitor
visit
public void visit(SunSkyLight sunSkyLight)
- Specified by:
visit
in interface LightVisitor