mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
8422732505
This should fix the horrid frame rate dependent behavior of the view model. They are also in their own descriptor set so they can be easily shared between pipelines. This has been verified to work for Draw.
17 lines
285 B
GLSL
17 lines
285 B
GLSL
#version 450
|
|
|
|
layout (set = 1, binding = 0) uniform sampler2D Texture;
|
|
|
|
layout (location = 0) in vec2 st;
|
|
layout (location = 1) in vec4 color;
|
|
|
|
layout (location = 0) out vec4 frag_color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec4 pix;
|
|
|
|
pix = texture (Texture, st);
|
|
frag_color = pix * color;
|
|
}
|