Constructors
Properties
Completed
#Bookkeeping property useful for keeping track of pixel 'liveness' over the course of a raysampling process. The pixel itself does not access or read this field.
Consistency
#Bookkeeping property useful for keeping track of pixel consistency over the course of a raysampling process. The pixel itself does not access or read this field.
Methods
AddSample
#Add a new sample to this pixel. This method is threadsafe.
Parameters:
| colour (Color) | Colour to add. |
| difference (out float) | The difference between the new colour and the current colour. |
AddSample
#public void AddSample(Color colour)
Add a new sample to this pixel. This method is threadsafe.
Parameters:
| colour (Color) | Colour to add. |
Returns: The difference between the new colour and the current colour.
NextRay
#Gets the next ray position based on the pixel [x,y] coordinates and the sampling density. This method is threadsafe.
Returns: Ray.
SetColour
#public void SetColour(Color colour)
Set the colour of this pixel and revert the N counter.
Parameters:
| colour (Color) | Colour to set. |