mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-05 15:42:31 +01:00
feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first
This commit is contained in:
18
shaders/ogl46/texturewindow.frag
Normal file
18
shaders/ogl46/texturewindow.frag
Normal file
@@ -0,0 +1,18 @@
|
||||
#version 460 core
|
||||
#define STAGE_FRAGMENT 1
|
||||
layout(location = 14) in vec2 f_coords;
|
||||
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
#include "settings.glsl"
|
||||
|
||||
#pragma texture(tex1, 0, sRGB)
|
||||
layout(binding = 0) uniform sampler2D tex1;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 texcoord = f_coords;
|
||||
vec3 color = texture(tex1, texcoord).rgb;
|
||||
|
||||
out_color = FBOUT(vec4(color, 1.0));
|
||||
}
|
||||
Reference in New Issue
Block a user