mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 12:29:18 +02:00
map
This commit is contained in:
8
shaders/map.frag
Normal file
8
shaders/map.frag
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 330
|
||||
|
||||
#include <common>
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragData[0] = vec4(1.0f);
|
||||
}
|
||||
12
shaders/map.vert
Normal file
12
shaders/map.vert
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 330
|
||||
|
||||
layout(location = 0) in vec3 v_vert;
|
||||
|
||||
#include <common>
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 clip_pos = projection * vec4(v_vert, 1.0f);
|
||||
|
||||
gl_Position = vec4(clip_pos.xz, 0.5, 1.0);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ void main()
|
||||
vec2 a = (f_clip_future_pos.xy / f_clip_future_pos.w) * 0.5 + 0.5;;
|
||||
vec2 b = (f_clip_pos.xy / f_clip_pos.w) * 0.5 + 0.5;;
|
||||
|
||||
gl_FragData[1] = vec4(a - b, 0.0f, tex_color.a < 0.9f ? 0.0f : 1.0f);
|
||||
gl_FragData[1] = vec4(a - b, 0.0f, tex_color.a);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user