Cycles: Query XYZ to/from Scene Linear conversion from OCIO instead of assuming sRGB

I've limited it to just the RGB<->XYZ stuff for now, correct image handling is the next step.

Reviewers: brecht, sergey

Differential Revision: https://developer.blender.org/D3478
This commit is contained in:
Lukas Stockner
2018-06-14 17:48:19 +02:00
parent 064e701472
commit 3ee606621c
32 changed files with 204 additions and 65 deletions

View File

@@ -40,6 +40,9 @@ roles:
# Non-color data
data: Non-Color
# CIE XYZ color space
XYZ: XYZ
displays:
sRGB:
- !<View> {name: Default, colorspace: sRGB}
@@ -188,8 +191,7 @@ colorspaces:
allocationvars: [-8.5, 5]
from_reference: !<GroupTransform>
children:
- !<FileTransform> {src: rec709_to_aces.spimtx, interpolation: linear}
- !<FileTransform> {src: aces_to_xyz.spimtx, interpolation: linear}
- !<FileTransform> {src: srgb_to_xyz.spimtx, interpolation: linear}
- !<ColorSpace>
name: rrt_xyz