Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/camera.h
| Show All 34 Lines | |||||
| * Renderman, and Blender after remapping. | * Renderman, and Blender after remapping. | ||||
| */ | */ | ||||
| class Camera { | class Camera { | ||||
| public: | public: | ||||
| /* Specifies an offset for the shutter's time interval. */ | /* Specifies an offset for the shutter's time interval. */ | ||||
| enum MotionPosition { | enum MotionPosition { | ||||
| /* Shutter opens at the current frame. */ | /* Shutter opens at the current frame. */ | ||||
| MOTION_POSITION_START, | MOTION_POSITION_START = 0, | ||||
| /* Shutter is fully open at the current frame. */ | /* Shutter is fully open at the current frame. */ | ||||
| MOTION_POSITION_CENTER, | MOTION_POSITION_CENTER = 1, | ||||
| /* Shutter closes at the current frame. */ | /* Shutter closes at the current frame. */ | ||||
| MOTION_POSITION_END, | MOTION_POSITION_END = 2, | ||||
| MOTION_NUM_POSITIONS, | |||||
| }; | }; | ||||
| /* Specifies rolling shutter effect. */ | /* Specifies rolling shutter effect. */ | ||||
| enum RollingShutterType { | enum RollingShutterType { | ||||
| /* No rolling shutter effect. */ | /* No rolling shutter effect. */ | ||||
| ROLLING_SHUTTER_NONE = 0, | ROLLING_SHUTTER_NONE = 0, | ||||
| /* Sensor is being scanned vertically from top to bottom. */ | /* Sensor is being scanned vertically from top to bottom. */ | ||||
| ROLLING_SHUTTER_TOP, | ROLLING_SHUTTER_TOP = 1, | ||||
| ROLLING_SHUTTER_NUM_TYPES, | |||||
| }; | }; | ||||
| /* motion blur */ | /* motion blur */ | ||||
| float shuttertime; | float shuttertime; | ||||
| MotionPosition motion_position; | MotionPosition motion_position; | ||||
| float shutter_curve[RAMP_TABLE_SIZE]; | float shutter_curve[RAMP_TABLE_SIZE]; | ||||
| size_t shutter_table_offset; | size_t shutter_table_offset; | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||