Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CommandBuffer.SetViewProjectionMatrices

public void SetViewProjectionMatrices(Matrix4x4 view, Matrix4x4 proj);

Parameters

view View (world to camera space) matrix.
proj Projection (camera to clip space) matrix.

Description

Add a command to set the view and projection matrices.

This function is equivalent to calling SetViewMatrix and SetProjectionMatrix. It is slightly more efficient when changing both matrices at once.

See Also: SetViewMatrix, SetProjectionMatrix, Camera.projectionMatrix, Matrix4x4.Perspective.

Did you find this page useful? Please give it a rating: