diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-15 17:01:01 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-15 17:01:01 -0400 |
| commit | 90ae5cdba22681488f2cb638e8abedaebbd29be1 (patch) | |
| tree | 562c8964c1a1be5c0e2552fdc5606a10e87c4dbf /assets/shaders/present.frag | |
| parent | af5d06a391aafd0c5a24cf15eeaeddbb9b4f8182 (diff) | |
add shaders
Diffstat (limited to 'assets/shaders/present.frag')
| -rw-r--r-- | assets/shaders/present.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/shaders/present.frag b/assets/shaders/present.frag new file mode 100644 index 0000000..695f7bd --- /dev/null +++ b/assets/shaders/present.frag @@ -0,0 +1,16 @@ +#version 450 + +layout (binding = 0) uniform sampler2D samplerColor; + +layout (location = 0) in vec2 inUV; + +layout (location = 0) out vec4 outFragColor; + +void main() +{ + vec4 color = texture(samplerColor, inUV); + if (color.w == 0) { + discard; + } + outFragColor = color; +}
\ No newline at end of file |
