puzzle ids

This commit is contained in:
Asuro
2025-03-13 22:47:23 +01:00
parent 155339917d
commit 97146664f2
19 changed files with 337 additions and 59 deletions

View File

@@ -11,6 +11,7 @@ SAMPLER2D(s_rampSampler, 2);
uniform vec4 u_time;
uniform vec4 u_testColor;
uniform vec4 u_texInfo;
uniform vec4 u_baseColor;
float calcBrightness(vec3 lightPos, vec3 vertPos, vec3 normal)
{
@@ -103,8 +104,7 @@ void main()
float g = dither(brightness * texColor.g, v_uv0);
float b = dither(brightness * texColor.b, v_uv0);
// float3 finalColor = vec3(r, g, b);
float3 finalColor = dither(brightness, v_uv0);
float3 ditheredColor = dither(brightness, v_uv0);
float3 finalColor = mix(u_baseColor, texColor, ditheredColor);
gl_FragColor = vec4(finalColor, 1.0);
// gl_FragColor = vec4(finalColor * 0.8 + subLayer * 0.2, 1.0);
// gl_FragColor = vec4(finalColor * 0.8 + vec3(uv % 1, 0.0) * 0.2, 1.0);
}