diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 01:11:28 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 01:11:28 +1000 |
commit | 17f0db6607534c5bf1ba96153fabd3fdbb399ed9 (patch) | |
tree | c6531c6c688e9719817ac4c06127affc1313f5d3 /assets/shaders/debug_quad.frag | |
parent | d20356fd426ccea1866fbda798864a378303bbbd (diff) |
wip: debug quad shader
Diffstat (limited to 'assets/shaders/debug_quad.frag')
-rw-r--r-- | assets/shaders/debug_quad.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/assets/shaders/debug_quad.frag b/assets/shaders/debug_quad.frag new file mode 100644 index 0000000..ac7842d --- /dev/null +++ b/assets/shaders/debug_quad.frag @@ -0,0 +1,12 @@ +#version 410 core +out vec4 FragColor; + +in vec2 TexCoords; + +uniform sampler2D depthMap; + +void main() +{ + float depthValue = texture(depthMap, TexCoords).r; + FragColor = vec4(vec3(depthValue), 1.0); // orthographic +}
\ No newline at end of file |