|
Blender V5.3
|
#include "gpu_shader_compat.hh"Go to the source code of this file.
Functions | |
Projection Matrices. | |
| float4x4 | projection_orthographic (float left, float right, float bottom, float top, float near_clip, float far_clip) |
| Create an orthographic projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. The resulting matrix can be used with either project_point or transform_point. | |
| float4x4 | projection_perspective (float left, float right, float bottom, float top, float near_clip, float far_clip) |
| Create a perspective projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. left, right, bottom, top are frustum side distances at z=near_clip. The resulting matrix can be used with project_point. | |
| float4x4 | projection_perspective_fov (float angle_left, float angle_right, float angle_bottom, float angle_top, float near_clip, float far_clip) |
| Create a perspective projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. Uses field of view angles instead of plane distances. The resulting matrix can be used with project_point. | |
| float4x4 projection_orthographic | ( | float | left, |
| float | right, | ||
| float | bottom, | ||
| float | top, | ||
| float | near_clip, | ||
| float | far_clip ) |
Create an orthographic projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. The resulting matrix can be used with either project_point or transform_point.
Definition at line 18 of file gpu_shader_math_matrix_projection.bsl.hh.
References projection_orthographic().
Referenced by gpu_math_test_main(), eevee::light::Resources::orthographic_sync(), projection_orthographic(), projection_orthographic(), eevee::shadow::tilemap_finalize_main(), and Camera::update().
| float4x4 projection_perspective | ( | float | left, |
| float | right, | ||
| float | bottom, | ||
| float | top, | ||
| float | near_clip, | ||
| float | far_clip ) |
Create a perspective projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. left, right, bottom, top are frustum side distances at z=near_clip. The resulting matrix can be used with project_point.
Definition at line 43 of file gpu_shader_math_matrix_projection.bsl.hh.
References projection_perspective().
Referenced by gpu_math_test_main(), projection_perspective(), projection_perspective(), projection_perspective_fov(), eevee::shadow::tilemap_finalize_main(), and Camera::update().
| float4x4 projection_perspective_fov | ( | float | angle_left, |
| float | angle_right, | ||
| float | angle_bottom, | ||
| float | angle_top, | ||
| float | near_clip, | ||
| float | far_clip ) |
Create a perspective projection matrix using OpenGL coordinate convention: Maps each axis range to [-1..1] range for all axes. Uses field of view angles instead of plane distances. The resulting matrix can be used with project_point.
Definition at line 70 of file gpu_shader_math_matrix_projection.bsl.hh.
References projection_perspective(), projection_perspective_fov(), and tan.
Referenced by gpu_math_test_main(), and projection_perspective_fov().