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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user