Skip to content

Commit

Permalink
filmsim: fix negative scan (scan film not paper)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Feb 27, 2025
1 parent 8be3d20 commit 95bd946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipe/modules/filmsim/main.comp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void main()
for(int l=0;l<=40;l++)
{
float lambda = 380 + l*10;
vec2 tc = vec2(0.0, get_tcy(s_dye_density, paper));
vec2 tc = vec2(0.0, get_tcy(s_dye_density, params.enlarger > 0 ? paper : film));
tc.x = (l+0.5) / 256.0;
vec4 dye_density = texture(img_filmsim, tc);
dye_density = mix(dye_density, vec4(0.0), isnan(dye_density));
Expand Down

0 comments on commit 95bd946

Please sign in to comment.