Skip to content

Commit ec218ae

Browse files
Introduce NanoColor names to default color management (AcademySoftwareFoundation#2513)
For 1.39 we only remap to existing color spaces. Todo: For 1.40: - rename node defs/graphs to make nanocolor names the default - implement an upgrade path for legacy color spaces names - provide new nodegraphs for lin_ap0_scene, lin_rec2020_scene, and srgb_ap1_scene
1 parent 4d5a884 commit ec218ae

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

source/MaterialXGenShader/DefaultColorManagementSystem.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,21 @@ const StringMap COLOR_SPACE_REMAP =
2020
{ "gamma18", "g18_rec709" },
2121
{ "gamma22", "g22_rec709" },
2222
{ "gamma24", "rec709_display" },
23-
{ "lin_ap1", "acescg" }
23+
{ "lin_ap1", "acescg" },
24+
25+
// In 1.39 we remap namespaces from ASWF recommended color interop spaces
26+
// See https://github.com/AcademySoftwareFoundation/ColorInterop
27+
// This should improve interop with the nanocolor spaces found in USD.
28+
{"lin_ap1_scene", "acescg"},
29+
{"lin_rec709_scene", "lin_rec709"},
30+
{"lin_p3d65_scene", "lin_displayp3"},
31+
{"lin_adobergb_scene", "lin_adobergb"},
32+
{"srgb_rec709_scene", "srgb_texture"},
33+
{"g22_rec709_scene", "g22_rec709"},
34+
{"g18_rec709_scene", "g18_rec709"},
35+
{"g22_ap1_scene", "g22_ap1"},
36+
{"srgb_p3d65_scene", "srgb_displayp3"},
37+
{"g22_adobergb_scene", "adobergb"}
2438
};
2539

2640
} // anonymous namespace

0 commit comments

Comments
 (0)