map tests

This commit is contained in:
2025-05-18 01:01:36 +03:00
parent 029fae48bd
commit 156cc384cc
4 changed files with 3403 additions and 254 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,7 @@ void main() {
int row = int(mod(gl_FragCoord.y, 4));
float threshold = float(bayer16[col + 4 * row]) / 16.0 - 0.5;
grey = clamp(grey + threshold * 0.1 , 0.01, 0.99);
// texelColor.rgb = clamp(texelColor.rgb + vec3(threshold * 0.1), 0.01, 0.99);
vec2 paluv = vec2(grey, 0.5);
vec4 paletteValue = texture(texture1, paluv);

View File

@ -31,5 +31,6 @@ void main()
fragNormal = normalize(vec3(matNormal*vec4(vertexNormal, 1.0)));
// Calculate final vertex position
// vertexPosition = floor(vertexPosition * 6.0) / 6.0;
gl_Position = mvp*vec4(vertexPosition, 1.0);
}