This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/draw/modes/shaders/common_view_lib.glsl

15 lines
336 B
GLSL
Raw Normal View History

/* keep in sync with DRWManager.view_data */
layout(std140) uniform viewBlock {
/* Same order as DRWViewportMatrixType */
mat4 ViewProjectionMatrix;
mat4 ViewProjectionMatrixInverse;
mat4 ViewMatrix;
mat4 ViewMatrixInverse;
mat4 ProjectionMatrix;
mat4 ProjectionMatrixInverse;
vec4 CameraTexCoFactors;
vec4 clipPlanes[2];
};