source: opengl-game/shaders/overlay.frag@ d53ef6a

feature/imgui-sdl points-test
Last change on this file since d53ef6a was e5d4aca, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Create separate descriptor pools and descriptor sets for each shader group and start removing unnecessary elements from the overlay shaders

  • Property mode set to 100644
File size: 532 bytes
Line 
1#version 450
2#extension GL_ARB_separate_shader_objects : enable
3
4layout(binding = 0) uniform sampler2D uiTexSampler;
5
6layout(location = 0) in vec3 fragColor;
7layout(location = 1) in vec2 fragTexCoord;
8layout(location = 2) flat in uint isOverlay;
9
10layout(location = 0) out vec4 outColor;
11
12void main() {
13 outColor = texture(uiTexSampler, fragTexCoord);
14
15 if (isOverlay == 1) {
16 outColor = texture(uiTexSampler, fragTexCoord);
17 } else {
18 outColor = vec4(fragColor * texture(uiTexSampler, fragTexCoord).rgb, 1.0);
19 }
20}
Note: See TracBrowser for help on using the repository browser.