paint: cleanup

This commit is contained in:
luboslenco
2026-04-02 16:55:05 +02:00
parent 3a9c16697a
commit 95fd671aa4
+1 -8
View File
@@ -82,10 +82,7 @@ fun ssao_blur_pass_frag(input: vert_out): float {
var weight: float = 0.132572;
var color: float = sample_lod(tex, sampler_linear, input.tex, 0.0).r * weight;
//for (var i: int = 1; i < 8; i += 1) {
var i: int = 1;
while (i < 8) {
for (var i: int = 1; i < 8; i += 1) {
var blur_weight_i: float; // = blur_weights[i];
if (i == 1) {
blur_weight_i = 0.125472;
@@ -125,10 +122,6 @@ fun ssao_blur_pass_frag(input: vert_out): float {
w = blur_weight_i * influence_factor;
color += col * w;
weight += w;
//
i += 1;
//
}
color = color / weight;