|
Untitled
|
Go to the source code of this file.
Data Structures | |
| struct | DrawArraysIndirectCommand |
| DrawArraysIndirect commands are used for static meshes (eg. More... | |
| struct | MeshNode |
| MeshNodes that describe the position of Meshes, GLTF nodes for GLTFAnimations, or hold references to other MeshNodes. More... | |
| struct | Transform |
| Transforms for MeshNode models. More... | |
Macros | |
| #define | MAX_MESH_NODES 1024 |
Functions | |
| layout (location=0) in vec3 aPosition | |
| layout (std430, binding=5) buffer DrawArraysData | |
| layout (std140, binding=0) uniform CameraData | |
| void | main () |
Variables | |
| out vec3 | vWorldPos |
| uniform uint | uOffset |
| uniform uint | uDynamicPass |
| out vec3 | ViewPos |
| out vec3 | Normal |
| out vec3 | ViewDirTanSpace |
| out mat3 | TBN |
| flat out uint | Mat |
| out vec2 | UV |
| out vec4 | ClipPos |
| out vec4 | PrevClipPos |
| #define MAX_MESH_NODES 1024 |
Definition at line 74 of file depth_pre_pass.vert.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | std430 | , |
| binding | = 5 ) |
Definition at line 26 of file depth_pre_pass.vert.
References layout().
| layout | ( | std140 | , |
| binding | = 0 ) |
Definition at line 30 of file depth_pre_pass.vert.
References layout(), projection, and view.
| void main | ( | ) |
Definition at line 125 of file depth_pre_pass.vert.
References B, DrawArraysIndirectCommand::baseInstance, ClipPos, DrawArraysIndirectCommand::instanceCount, main(), Mat, Transform::mat, MeshNode::material, Transform::mn_id, Normal, PrevClipPos, projection, TBN, uDynamicPass, uOffset, UV, view, ViewDirTanSpace, ViewPos, and vec3::z.
| out vec3 vWorldPos |
Definition at line 112 of file depth_pre_pass.vert.
| uniform uint uOffset |
Definition at line 113 of file depth_pre_pass.vert.
Referenced by main().
| uniform uint uDynamicPass |
Definition at line 114 of file depth_pre_pass.vert.
Referenced by main().
| out vec3 ViewPos |
Definition at line 115 of file depth_pre_pass.vert.
| out vec3 Normal |
Definition at line 117 of file depth_pre_pass.vert.
| out vec3 ViewDirTanSpace |
Definition at line 118 of file depth_pre_pass.vert.
| out mat3 TBN |
Definition at line 119 of file depth_pre_pass.vert.
| flat out uint Mat |
Definition at line 120 of file depth_pre_pass.vert.
| out vec2 UV |
Definition at line 121 of file depth_pre_pass.vert.
| out vec4 ClipPos |
Definition at line 122 of file depth_pre_pass.vert.
| out vec4 PrevClipPos |
Definition at line 123 of file depth_pre_pass.vert.