tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_camera_perspective_params_t Struct Reference

Perspective camera parameters. More...

#include <tinypbrt/detail/camera.h>

Data Fields

tpbrt_float_t frame_aspect_ratio
 The aspect ratio of the film.
 
tpbrt_float_t screen_window [4]
 The bounds of the film plane in screen space.
 
tpbrt_float_t lens_radius
 The radius of the lens.
 
tpbrt_float_t focal_distance
 The focal distance of the lens. If "lensradius" is zero, this has no effect. Otherwise, it specifies the distance from the camera origin to the focal plane.
 
tpbrt_float_t fov
 Specifies the field of view for the perspective camera. This is the spread angle of the viewing frustum along the narrower of the image's width and height.
 

Detailed Description

Perspective camera parameters.

Field Documentation

◆ frame_aspect_ratio

tpbrt_float_t tpbrt_camera_perspective_params_t::frame_aspect_ratio

The aspect ratio of the film.

◆ screen_window

tpbrt_float_t tpbrt_camera_perspective_params_t::screen_window[4]

The bounds of the film plane in screen space.

◆ lens_radius

tpbrt_float_t tpbrt_camera_perspective_params_t::lens_radius

The radius of the lens.

Examples
examples/scene_info/main.c.

◆ focal_distance

tpbrt_float_t tpbrt_camera_perspective_params_t::focal_distance

The focal distance of the lens. If "lensradius" is zero, this has no effect. Otherwise, it specifies the distance from the camera origin to the focal plane.

Examples
examples/scene_info/main.c.

◆ fov

tpbrt_float_t tpbrt_camera_perspective_params_t::fov

Specifies the field of view for the perspective camera. This is the spread angle of the viewing frustum along the narrower of the image's width and height.

Examples
examples/scene_info/main.c.

The documentation for this struct was generated from the following file: