Add support for creating Vulkan window surfaces.
This commit is contained in:
parent
8886134156
commit
6272f853c1
36 changed files with 16176 additions and 0 deletions
16
examples/vulkan/resources/shader.frag
Normal file
16
examples/vulkan/resources/shader.frag
Normal file
|
@ -0,0 +1,16 @@
|
|||
#version 450
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
|
||||
layout(binding = 1) uniform sampler2D texSampler;
|
||||
|
||||
layout(location = 0) in vec4 fragColor;
|
||||
layout(location = 1) in vec2 fragTexCoord;
|
||||
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
void main() {
|
||||
outColor = fragColor * texture(texSampler, fragTexCoord);
|
||||
|
||||
if (outColor.a < 0.5)
|
||||
discard;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue