forked from bartvdbraak/blender
Fix #33351: cycles OSL not loading grayscale images as RGB correctly.
This commit is contained in:
parent
e7f594b0df
commit
1246ef714e
@ -138,6 +138,7 @@ void OSLShaderManager::texture_system_init()
|
|||||||
ts = TextureSystem::create(true);
|
ts = TextureSystem::create(true);
|
||||||
ts->attribute("automip", 1);
|
ts->attribute("automip", 1);
|
||||||
ts->attribute("autotile", 64);
|
ts->attribute("autotile", 64);
|
||||||
|
ts->attribute("gray_to_rgb", 1);
|
||||||
|
|
||||||
/* effectively unlimited for now, until we support proper mipmap lookups */
|
/* effectively unlimited for now, until we support proper mipmap lookups */
|
||||||
ts->attribute("max_memory_MB", 16384);
|
ts->attribute("max_memory_MB", 16384);
|
||||||
|
Loading…
Reference in New Issue
Block a user