source: opengl-game/resources/shader.frag@ c205c3a

feature/imgui-sdl
Last change on this file since c205c3a was c205c3a, checked in by Dmitry Portnoy <dportnoy@…>, 4 years ago

In VulkanSFMLReference, use the Vulkan SDK version of vulkan.h instead of the one from the SFML repo, switch to the newer debugUtilsMessengerEXT for debugging, and add resources the example code needs for rendering

  • Property mode set to 100644
File size: 362 bytes
Line 
1#version 450
2#extension GL_ARB_separate_shader_objects : enable
3
4layout(binding = 1) uniform sampler2D texSampler;
5
6layout(location = 0) in vec4 fragColor;
7layout(location = 1) in vec2 fragTexCoord;
8
9layout(location = 0) out vec4 outColor;
10
11void main() {
12 outColor = fragColor * texture(texSampler, fragTexCoord);
13
14 if (outColor.a < 0.5)
15 discard;
16}
Note: See TracBrowser for help on using the repository browser.