Class ThinLens
Implements a lens component that reproduces a thin lens model. This camera model is commonly used in game development.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public class ThinLens : LensComponent
Fields
Name | Description |
---|---|
anamorphism | Stretch the sensor to simulate an anamorphic look. |
aperture | The f-stop (f-number) of the lens. Lower values give a wider lens aperture. ie: f-stop = f / aperture |
barrelClipping | Controls the self-occlusion of the lens, creating a cat's eye effect. |
bladeCount | The number of blades in the lens aperture. Higher values give a rounder aperture shape. |
curvature | Controls the curvature of the lens aperture blades. The minimum value results in fully-curved, perfectly-circular bokeh, and the maximum value results in visible aperture blades. |
focalLength | The simulated distance, in millimeters, between the lens and the sensor of the physical camera. Larger values gives a narrower field of view. |
shift | Offset from the camera sensor. Use these properties to simulate a shift lens. Measured as a multiple of the sensor size. |
useRaytracing | Use raytracing to improve the rendering if available |
Methods
Name | Description |
---|---|
InternalActivate(IPhotosensorArrayDescription) | Initializes child-specific parts of the lens component. |