Method Subscribe
Subscribe(ExecuteSamplingAction)
Attaches a photosensor to the camera custom pass volume on the BeforePostProcess. It will invoke "ExecuteSampling" callback to execute the scene sampling.
Declaration
public static bool Subscribe(PathtracedPhotosensors.ExecuteSamplingAction ExecuteSampling)
Parameters
Type | Name | Description |
---|---|---|
PathtracedPhotosensors.ExecuteSamplingAction | ExecuteSampling | Callback function to execute the photosensor sampling. |
Returns
Type | Description |
---|---|
bool | true if the photosensor callback has been registered. |