collisions

This commit is contained in:
2025-05-16 01:00:31 +03:00
parent 120a70cf42
commit efd18c8049
12 changed files with 2203 additions and 3 deletions

View File

@ -13,7 +13,7 @@ uniform vec4 colDiffuse;
// Output fragment color
out vec4 finalColor;
#define MAX_LIGHTS 12
#define MAX_LIGHTS 32
struct Light {
int enabled;

View File

@ -11,7 +11,7 @@ uniform sampler2D texture0;
uniform sampler2D texture1;
uniform vec4 colDiffuse;
#define POSTERIZE 5.0
#define POSTERIZE 6.0
out vec4 finalColor;
@ -27,7 +27,7 @@ void main() {
int col = int(mod(gl_FragCoord.x, 4));
int row = int(mod(gl_FragCoord.y, 4));
float threshold = float(bayer16[col + 4 * row]) / 16.0 - 0.5;
grey = clamp(grey + threshold * 0.04 + 0.15 , 0.01, 0.99);
grey = clamp(grey + threshold * 0.2 , 0.01, 0.99);
vec2 paluv = vec2(grey, 0.5);
vec4 paletteValue = texture(texture1, paluv);