more substance painter and shader tests

This commit is contained in:
derek
2025-01-14 16:08:11 -06:00
parent fb8ba949a0
commit bdf90f1e89
258 changed files with 15563 additions and 273 deletions

View File

@@ -18,7 +18,7 @@ vec3 blur(sampler2D sp, vec2 uv, vec2 scale) {
float accum = 0.0;
float weight;
vec2 offset;
for (int x = -samples / 2; x < samples / 2; ++x) {
for (int y = -samples / 2; y < samples / 2; ++y) {
offset = vec2(float(x), float(y));
@@ -27,14 +27,14 @@ vec3 blur(sampler2D sp, vec2 uv, vec2 scale) {
accum += weight;
}
}
return col / accum;
}
void fragment() {
vec2 ps = vec2(1.0) / iResolution.xy * .000001 * strength;
vec2 uv = UV ;
COLOR.rgb = blur(SCREEN_TEXTURE, uv, ps );
COLOR.a = 1.0;
}