org.sunflow.core.light

Class DirectionalSpotlight

Implemented Interfaces:
LightSource, RenderObject

public class DirectionalSpotlight
extends java.lang.Object
implements LightSource

Constructor Summary

DirectionalSpotlight()

Method Summary

int
getLowSamples()
int
getNumSamples()
void
getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
float
getPower()
void
getSamples(ShadingState state)
boolean
update(ParameterList pl, SunflowAPI api)

Constructor Details

DirectionalSpotlight

public DirectionalSpotlight()

Method Details

getLowSamples

public int getLowSamples()

getNumSamples

public int getNumSamples()
Specified by:
getNumSamples in interface LightSource

getPhoton

public void getPhoton(double randX1,
                      double randY1,
                      double randX2,
                      double randY2,
                      Point3 p,
                      Vector3 dir,
                      Color power)
Specified by:
getPhoton in interface LightSource

getPower

public float getPower()
Specified by:
getPower in interface LightSource

getSamples

public void getSamples(ShadingState state)
Specified by:
getSamples in interface LightSource

update

public boolean update(ParameterList pl,
                      SunflowAPI api)
Specified by:
update in interface RenderObject