1using System.Runtime.CompilerServices;
14 MetallicRoughnessAOSpecular,
27 public RenderTexture renderTarget { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
36 INTERNAL_worldToScreenPoint(ref world, out
Vector3 screen);
48 INTERNAL_screenToWorldPoint(ref screen, out
Vector3 world);
60 INTERNAL_getViewMatrix(ownFrustumOnly, out
Matrix4 matrix);
70 INTERNAL_getProjectionMatrix(out
Matrix4 matrix);
81 return INTERNAL_isObjectVisible(@
object);
87 public float nearClipDistance { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
92 public float farClipDistance { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
101 return INTERNAL_GetGBufferTexture((
int)textureType);
106 [MethodImpl(MethodImplOptions.InternalCall)]
107 private extern void INTERNAL_getViewMatrix(
bool ownFrustumOnly, out
Matrix4 matrix);
109 [MethodImpl(MethodImplOptions.InternalCall)]
110 private extern void INTERNAL_getProjectionMatrix(out
Matrix4 matrix);
112 [MethodImpl(MethodImplOptions.InternalCall)]
113 private extern void INTERNAL_worldToScreenPoint(ref
Vector3 world, out
Vector3 screen);
115 [MethodImpl(MethodImplOptions.InternalCall)]
116 private extern void INTERNAL_screenToWorldPoint(ref
Vector3 screen, out
Vector3 world);
118 [MethodImpl(MethodImplOptions.InternalCall)]
119 private extern bool INTERNAL_isObjectVisible(
GameObject @
object);
121 [MethodImpl(MethodImplOptions.InternalCall)]
122 private extern Texture INTERNAL_GetGBufferTexture(
int textureType);
Matrix4 GetViewMatrix(bool ownFrustumOnly=false)
Returns a view matrix of this camera
Vector3 WorldToScreenPoint(Vector3 world)
Convert world to screen point
RenderTexture renderTarget
Get or set the render texture as a render target
bool IsObjectVisible(GameObject @object)
Checks if the game object is in field of view of this camera
float farClipDistance
The distance of the far clipping plane from the camera, in world units
Texture GetGBufferTexture(GBufferTexture textureType)
Get GBuffer texture from channel pointed by textureType
Vector3 ScreenToWorldPoint(Vector3 screen)
Convert screen to world point
Matrix4 GetProjectionMatrix()
Returns a projection matrix of this camera
GBufferTexture
GBufferTexture enum
float nearClipDistance
The distance of the near clipping plane from the camera, in world units