init commit, with sample code

This commit is contained in:
2024-11-04 18:21:33 +01:00
parent dacbba25b3
commit 171650af73
705 changed files with 121089 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
uniform sampler2D texture;
uniform float pixel_threshold;
void main()
{
float factor = 1.0 / (pixel_threshold + 0.001);
vec2 pos = floor(gl_TexCoord[0].xy * factor + 0.5) / factor;
gl_FragColor = texture2D(texture, pos) * gl_Color;
}