diffrp.rendering.mixin#

class diffrp.rendering.mixin.RenderSessionMixin#

Bases: object

Mixin implementation for common operations across render sessions.

camera: Camera#
camera_P()#
camera_V()#
camera_VP()#
camera_far() float#
camera_rays() Tensor#
scene: Scene#
vertex_array_object() VertexArrayObject#
view_dir() Tensor#
Returns:

Full-screen unit direction vectors of outbound rays from the camera. Tensor of shape (H, W, 3).

Return type:

torch.Tensor