diff --git a/resources/shaders/tiling.fs b/resources/shaders/tiling.fs index 7430751..43643aa 100644 --- a/resources/shaders/tiling.fs +++ b/resources/shaders/tiling.fs @@ -60,10 +60,5 @@ void main() outColor *= texture(occlusionMap, (vec2(ao_square, 0)+fract(fragTileTexCoord))/vec2(256, 1)); outColor.a = 1; - - //uint bit = uint(fragTileTexCoord * 32); - //outColor.g = (((uint(quadWidth) >> bit) & uint(1)) == uint(1)) ? - // ((bit % uint(2) == uint(0)) ? 1.0 : 0.8): - // ((bit % uint(2) == uint(0)) ? 0.0 : 0.2); } diff --git a/src/main.zig b/src/main.zig index ac9384a..3895835 100644 --- a/src/main.zig +++ b/src/main.zig @@ -104,10 +104,6 @@ pub fn main() !void { model.materials[0].shader.locs[raylib.SHADER_LOC_MAP_DIFFUSE+1] = raylib.GetShaderLocation(shader, "occlusionMap"); raylib.SetShaderValueTexture(shader, model.materials[0].shader.locs[raylib.SHADER_LOC_MAP_DIFFUSE+1], ambient_occlusion_texture); model.materials[0].maps[raylib.MATERIAL_MAP_DIFFUSE+1].texture = ambient_occlusion_texture; - // for (0..32) |i|{ - // std.debug.print("shader loc {}: {}\n", .{i, shader.locs[i]}); - // } - while (!raylib.WindowShouldClose()) { raylib.ClearBackground(raylib.BLACK);