Method CreateUnityCameraDeferred
CreateUnityCameraDeferred(GameObject, int, int, RenderTextureFormat, float)
Create a non-physical (fov-based) camera that use deferred rendering to sample the scene.
Declaration
public static Camera CreateUnityCameraDeferred(GameObject parent, int width, int height, RenderTextureFormat format, float fov)
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent | GameObject that will be the parent of a new game object with a camera component. |
int | width | Camera image width in pixels. |
int | height | Camera image height in pixels. |
RenderTextureFormat | format | Camera image format. |
float | fov | Camera vertical field-of-view angle in degrees. |
Returns
Type | Description |
---|---|
Camera | the newly-created camera |
CreateUnityCameraDeferred(GameObject, CameraDesc)
Create a physical camera that use deferred rendering to sample the scene.
Declaration
public static Camera CreateUnityCameraDeferred(GameObject parent, CameraDesc desc)
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent | GameObject that will be the parent of a new game object with a camera component. |
CameraDesc | desc | Sensor information that contain useful information to create the camera. |
Returns
Type | Description |
---|---|
Camera | the newly-created camera |