This commit is contained in:
Moulberry committed 2024-08-29 10:34:49 +08:00
1 parent d2a217509f
commit 4d8f896cdf
90 files changed
+2345 -720

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

@@ -1,5 +1,5 @@
{
"vertex": "blit_screen_flip",
"vertex": "flashback:blit_screen_flip",
"fragment": "blit_screen",
"samplers": [
{ "name": "DiffuseSampler" }
@@ -0,0 +1,13 @@
#version 150
uniform sampler2D DiffuseSampler;
in vec2 texCoord;
out vec4 fragColor;
void main() {
vec4 color = texture(DiffuseSampler, texCoord);
color.a = round(color.a);
fragColor = color;
}
@@ -0,0 +1,9 @@
{
"vertex": "flashback:blit_screen_round_alpha",
"fragment": "flashback:blit_screen_round_alpha",
"samplers": [
{ "name": "DiffuseSampler" }
],
"uniforms": [
]
}
@@ -0,0 +1,11 @@
#version 150
in vec3 Position;
out vec2 texCoord;
void main() {
vec2 screenPos = Position.xy * 2.0 - 1.0;
gl_Position = vec4(screenPos.x, screenPos.y, 1.0, 1.0);
texCoord = Position.xy;
}