Example_Raytracer
Description
- Derived from
-
Versioned abstract
IUpdateableFrameTime
INearAtZero
Full source code is included in the Tinman 3D SDK download. |
This class implements a simplistic raytracer for a ISpatialQuery object, using a single directional light with hard shadows.
Public / Attributes
ColorBackground
The color to use for the background (i.e. ray missed target).
Defaults to Colors.LightSkyBlue.
ColorLight
The color to use for the lit areas (i.e. ray hit target, no shadow).
Defaults to Colors.PapayaWhip.
ColorShadow
The color to use for the shadowed areas (i.e. ray hit target, in shadow).
Defaults to Colors.DarkGray.
Matrix
The inverse model-view-projection matrix (i.e. the transformation from clip-space to world-space).
Defaults to Mat4D.Identity.
- See also
Offset
The translation offset to apply to screen pixel rays that have been generated from Matrix.
Defaults to Vec2D.Zero.
Pixels
The pixel buffer that holds the resulting image.
Each time the contents of the pixel buffer have changed, the IVersioned.Version is incremented.
- See also