18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 23:44:58 +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:
2026-10-24 05:47:11 +02:00
parent 68fa5dc2da
commit bd589f272d
235 changed files with 9397 additions and 3975 deletions

30
shaders/ogl46/stars.frag Normal file
View File

@@ -0,0 +1,30 @@
#version 460 core
#define STAGE_FRAGMENT 1
// a star: a soft point added to the sky
layout(location = 13) in vec3 f_color;
#include "common.glsl"
#include "tonemapping.glsl"
layout(location = 0) out vec4 out_color;
layout(location = 1) out vec4 out_motion;
void main()
{
vec2 offset = gl_PointCoord - 0.5;
float spot = exp(-dot(offset, offset) * 14.0);
vec3 color = f_color * spot;
if (POSTFX_ENABLED)
{
out_color = vec4(color, 0.0);
}
else
{
out_color = vec4(tonemap(vec4(color, 1.0)).rgb, 0.0);
}
if (MOTIONBLUR_ENABLED)
{
out_motion = vec4(0.0);
}
}