Skip to content

Commit

Permalink
Don't convert color values when sampling.
Browse files Browse the repository at this point in the history
Our shaders do that already. Applying conversion here
makes the shader control much harder.
  • Loading branch information
jesterKing committed Oct 1, 2024
1 parent c14a7ba commit d096a0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kernel/svm/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ ccl_device float4 svm_image_texture(KernelGlobals kg, int id, float x, float y,
r.w = alpha;
}

/* Don't convert to linear, messes up shader setup in RhinoCycles
- jesterKing, 2024.10.01
if (flags & NODE_IMAGE_COMPRESS_AS_SRGB) {
r = color_srgb_to_linear_v4(r);
}
*/

return r;
}
Expand Down

0 comments on commit d096a0b

Please sign in to comment.