Depth map rendering for a shadow buffer. More...
Inherits DD::Image::Render.
Public Member Functions | |
DepthMapRender (Node *node, int width=1024, int index=0) | |
void | set_camera (CameraOp *light) |
void | set_geometry (GeoOp *geometry) |
const GeoOp * | geometry () const |
int | width () const |
void | _validate (bool) |
CameraOp * | render_camera (int sample=0) |
GeoOp * | render_geo (int sample=0) |
Matrix4 | camera_matrix (int sample=0) |
Matrix4 | projection_matrix (int sample=0) |
const char * | Class () const |
const char * | node_help () const |
Protected Member Functions | |
void | _request (int x, int y, int r, int t, ChannelMask, int) |
bool | generate_render_primitives () |
void | engine (int y, int x, int r, ChannelMask, Row &) |
Protected Attributes | |
int | width_ |
Size width/height in pixels of buffer. | |
GeoOp * | geometry_ |
Geometry list to render. |
Depth map rendering for a shadow buffer.
bool DepthMapRender::generate_render_primitives | ( | ) | [protected, virtual] |
Initialize each sample Scene object and generate it's renderable primitives.
Reimplemented from DD::Image::Render.
References DD::Image::Scene::generate_render_primitives(), DD::Image::GeoInfo::matrix, DD::Image::Scene::object_transforms_, and DD::Image::Scene::transforms_.
Matrix4 DepthMapRender::camera_matrix | ( | int | sample = 0 | ) | [virtual] |
Returns the inverse camera matrix for a sample.
Reimplemented from DD::Image::Render.