delete comments from watershader

This commit is contained in:
Kaehvaman 2024-12-27 14:05:39 +04:00
parent 6fefff9813
commit 4dd9bf6d5a

View File

@ -46,25 +46,8 @@ void main()
samplePos.x += (bumpColor.r - 0.5) * xWaveWidth * fragColor.r;
samplePos.y += (bumpColor.g - 0.5) * xWaveHeight * fragColor.g;
// vec4 result = texture(texture0, samplePos);
// result += texture(texture0, vec2(samplePos.x + xBlurDistance, samplePos.y));
// result += texture(texture0, vec2(samplePos.x - xBlurDistance, samplePos.y));
// result += texture(texture0, vec2(samplePos.x, samplePos.y - xBlurDistance));
// result += texture(texture0, vec2(samplePos.x, samplePos.y + xBlurDistance));
// result += texture(texture0, vec2(samplePos.x + xBlurDistance, samplePos.y + xBlurDistance));
// result += texture(texture0, vec2(samplePos.x - xBlurDistance, samplePos.y - xBlurDistance));
// result += texture(texture0, vec2(samplePos.x + xBlurDistance, samplePos.y - xBlurDistance));
// result += texture(texture0, vec2(samplePos.x - xBlurDistance, samplePos.y + xBlurDistance));
//
// result = result / 9;
vec4 result = getAverageColor(texture0, samplePos, 0.7);
//vec4 result = texture(texture0, samplePos);
//result.a = texture(texture0, samplePos).a;
//result = mix(result, result * waterColor, fragColor.b);
result = result*colDiffuse*fragColor;
finalColor = result;