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:
541 bytes
|
Line | |
---|
1 | #version 450
|
---|
2 | #extension GL_ARB_separate_shader_objects : enable
|
---|
3 |
|
---|
4 | layout(location = 0) in vec3 inPosition;
|
---|
5 | layout(location = 1) in vec3 inColor;
|
---|
6 | layout(location = 2) in vec2 inTexCoord;
|
---|
7 |
|
---|
8 | layout(location = 0) out vec3 fragColor;
|
---|
9 | layout(location = 1) out vec2 fragTexCoord;
|
---|
10 | layout(location = 2) out uint isOverlay;
|
---|
11 |
|
---|
12 | void main() {
|
---|
13 | if (gl_VertexIndex < 0) {
|
---|
14 | fragColor = inColor;
|
---|
15 | isOverlay = 0;
|
---|
16 | } else {
|
---|
17 | fragColor = inColor;
|
---|
18 | isOverlay = 1;
|
---|
19 | }
|
---|
20 |
|
---|
21 | fragTexCoord = inTexCoord;
|
---|
22 | gl_Position = vec4(inPosition, 1.0);
|
---|
23 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.