|
Untitled
|
Go to the source code of this file.
Data Structures | |
| struct | Material |
| The Materials parsed in from scene files that determine rendering pipeline setup, uploads, and ordering. More... | |
Functions | |
| layout (location=0) out vec2 gVel | |
| layout (std140, binding=0) uniform CameraData | |
| layout (std430, binding=2) buffer MaterialData | |
| vec2 | ParallaxMapping (sampler2D normal_map, vec2 texCoords, vec3 viewDir, out float final_depth) |
| void | main () |
Variables | |
| in vec3 | Normal |
| in mat3 | TBN |
| flat in uint | Mat |
| in vec2 | UV |
| in vec3 | ViewPos |
| in vec4 | ClipPos |
| in vec4 | PrevClipPos |
| in vec3 | ViewDirTanSpace |
| const float | height_scale = 0.02f |
| uniform sampler2D | uAlbedo |
| uniform sampler2D | uARM |
| uniform sampler2D | uNormal |
| layout | ( | std140 | , |
| binding | = 0 ) |
Definition at line 5 of file depth_pre_pass_no_gbuffer.frag.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 2 ) |
Definition at line 46 of file depth_pre_pass_no_gbuffer.frag.
References layout().
Definition at line 68 of file depth_pre_pass_no_gbuffer.frag.
References clamp(), height_scale, ParallaxMapping(), vec2::x, and vec2::y.
| void main | ( | ) |
Definition at line 126 of file depth_pre_pass_no_gbuffer.frag.
References Material::albedo_tex, ClipPos, Material::diffuse, gVel, main(), Mat, PrevClipPos, UV, uv, ViewDirTanSpace, ViewPos, and vec4::w.
| in vec3 Normal |
Definition at line 54 of file depth_pre_pass_no_gbuffer.frag.
| in mat3 TBN |
Definition at line 55 of file depth_pre_pass_no_gbuffer.frag.
| flat in uint Mat |
Definition at line 56 of file depth_pre_pass_no_gbuffer.frag.
| in vec2 UV |
Definition at line 57 of file depth_pre_pass_no_gbuffer.frag.
| in vec3 ViewPos |
Definition at line 59 of file depth_pre_pass_no_gbuffer.frag.
| in vec4 ClipPos |
Definition at line 60 of file depth_pre_pass_no_gbuffer.frag.
| in vec4 PrevClipPos |
Definition at line 61 of file depth_pre_pass_no_gbuffer.frag.
| in vec3 ViewDirTanSpace |
Definition at line 62 of file depth_pre_pass_no_gbuffer.frag.
| const float height_scale = 0.02f |
Definition at line 63 of file depth_pre_pass_no_gbuffer.frag.
| uniform sampler2D uAlbedo |
Definition at line 64 of file depth_pre_pass_no_gbuffer.frag.
| uniform sampler2D uARM |
Definition at line 65 of file depth_pre_pass_no_gbuffer.frag.
| uniform sampler2D uNormal |
Definition at line 66 of file depth_pre_pass_no_gbuffer.frag.