Click or drag to resize

VisualServerCameraSetFrustum Method

Sets camera to use frustum projection. This mode allows adjusting the offset argument to create "tilted frustum" effects.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CameraSetFrustum(
	RID camera,
	float size,
	Vector2 offset,
	float zNear,
	float zFar
)

Parameters

camera
Type: GodotRID

[Missing <param name="camera"/> documentation for "M:Godot.VisualServer.CameraSetFrustum(Godot.RID,System.Single,Godot.Vector2,System.Single,System.Single)"]

size
Type: SystemSingle

[Missing <param name="size"/> documentation for "M:Godot.VisualServer.CameraSetFrustum(Godot.RID,System.Single,Godot.Vector2,System.Single,System.Single)"]

offset
Type: GodotVector2

[Missing <param name="offset"/> documentation for "M:Godot.VisualServer.CameraSetFrustum(Godot.RID,System.Single,Godot.Vector2,System.Single,System.Single)"]

zNear
Type: SystemSingle

[Missing <param name="zNear"/> documentation for "M:Godot.VisualServer.CameraSetFrustum(Godot.RID,System.Single,Godot.Vector2,System.Single,System.Single)"]

zFar
Type: SystemSingle

[Missing <param name="zFar"/> documentation for "M:Godot.VisualServer.CameraSetFrustum(Godot.RID,System.Single,Godot.Vector2,System.Single,System.Single)"]

See Also