This commit is contained in:
2026-02-24 11:44:01 -08:00
parent c9839c9be6
commit 1c3c30e6ce
34 changed files with 1629 additions and 1271 deletions

View File

@ -25,13 +25,13 @@ void main() {
float roughness = g0.b;
if (roughness > 0.95) {
fragColor.rgb = vec3(0.0);
fragColor = vec4(0.0);
return;
}
float spec = fract(textureLod(gbuffer1, texCoord, 0.0).a);
if (spec == 0.0) {
fragColor.rgb = vec3(0.0);
fragColor = vec4(0.0);
return;
}
@ -50,5 +50,5 @@ void main() {
n = normalize(n);
float intensity = clamp((1.0 - roughness) * dot(n, proben), 0.0, 1.0);
fragColor.rgb = texture(probeTex, tc).rgb * intensity;
fragColor = vec4(texture(probeTex, tc).rgb * intensity, 1.0);
}