Cycles: color space control for image/environment texture nodes. Ideally would

be automated but need to think about how to do this, not so simply in a node
system. But guideline for now is, for color textures set to sRGB, for things like
bump or roughness map, set to Linear.
This commit is contained in:
Brecht Van Lommel
2011-05-13 14:32:08 +00:00
parent 50d1a5b1eb
commit 922bb24865
12 changed files with 114 additions and 25 deletions

View File

@@ -21,8 +21,12 @@
shader node_environment_texture(
vector Vector = P,
string filename = "",
string color_space = "sRGB",
output color Color = color(0.0, 0.0, 0.0))
{
Color = (color)environment(filename, Vector);
if(color_space == "sRGB")
Color = color_srgb_to_scene_linear(Color);
}