Skip to content

Commit

Permalink
Update Planet_Rendering_Fragment.glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlof authored Sep 26, 2024
1 parent 4379972 commit c7b1e04
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions shaders/Planet_Rendering_Fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -841,14 +841,6 @@ void main( void )
pixelColor *= 0.1; // brightness of new image (noisy)
}

// if current raytraced pixel didn't return any color value, just use the previous frame's pixel color
if (pixelColor == vec3(0.0))
{
pixelColor = previousColor;
previousColor *= 0.5;
pixelColor *= 0.5;
}


pc_fragColor = vec4( pixelColor + previousColor, 1.01 );
}

0 comments on commit c7b1e04

Please sign in to comment.