Package org.sunflow.core.gi
Class PathTracingGIEngine
java.lang.Object
org.sunflow.core.gi.PathTracingGIEngine
- All Implemented Interfaces:
GIEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGlobalRadiance(ShadingState state) This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).getIrradiance(ShadingState state, Color diffuseReflectance) Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.booleanInitialize the engine.
-
Constructor Details
-
PathTracingGIEngine
public PathTracingGIEngine()
-
-
Method Details
-
init
Description copied from interface:GIEngineInitialize the engine. This is called before rendering begins. -
getIrradiance
Description copied from interface:GIEngineReturn the incomming irradiance due to indirect diffuse illumination at the specified surface point.- Specified by:
getIrradiancein interfaceGIEngine- Parameters:
state- current render state describing the point to be computeddiffuseReflectance- diffuse albedo of the point being shaded, this can be used for importance tracking- Returns:
- irradiance from indirect diffuse illumination at the specified point
-
getGlobalRadiance
Description copied from interface:GIEngineThis is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map). Engines can safely returnColor.BLACKif they can't or don't wish to support this.- Specified by:
getGlobalRadiancein interfaceGIEngine- Parameters:
state- shading state- Returns:
- color approximating global radiance
-