Update leenkx/Shaders/deferred_light/deferred_light.frag.glsl

This commit is contained in:
2025-07-10 01:14:03 +00:00
parent 858537d54c
commit 70695b3b31

View File

@ -319,7 +319,7 @@ void main() {
#ifdef _VoxelGI #ifdef _VoxelGI
fragColor.rgb = textureLod(voxels_diffuse, texCoord, 0.0).rgb * voxelgiDiff; fragColor.rgb = textureLod(voxels_diffuse, texCoord, 0.0).rgb * voxelgiDiff;
if(roughness < 1.0 && occspec.y > 0.0) if(roughness < 1.0 && occspec.y > 0.0)
fragColor.rgb += textureLod(voxels_specular, texCoord, 0.0).rgb * F * voxelgiRefl; fragColor.rgb += textureLod(voxels_specular, texCoord, 0.0).rgb * occspec.y * voxelgiRefl;
#else #else
#ifdef _VoxelAOvar #ifdef _VoxelAOvar
fragColor.rgb = textureLod(voxels_ao, texCoord, 0.0).rgb * voxelgiOcc; fragColor.rgb = textureLod(voxels_ao, texCoord, 0.0).rgb * voxelgiOcc;