Skip to content

Commit

Permalink
fix color preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Jan 28, 2024
1 parent fe777d9 commit f3cba84
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/shader/image.frag
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ vec3 getCheckColor() {
}

void main() {
color = texture(sampler2D(t_diffuse, s_diffuse), v_tex_coords);

return;
vec4 p = texture(sampler2D(t_diffuse, s_diffuse), v_tex_coords);
p.rgb = gammaCorrection(p.rgb, 2.2);

Expand Down

0 comments on commit f3cba84

Please sign in to comment.