Fix T61502: Cycles wrong other object texture coordinates in OSL.
The row/column major matrix conversion was done twice.
This commit is contained in:
parent
3866161da8
commit
79f5b825a9
Notes:
blender-bot
2023-02-14 03:44:37 +01:00
Referenced by issue #61502, Object Texture Coordinates do not work with OSL enabled
|
@ -3533,7 +3533,7 @@ void TextureCoordinateNode::compile(OSLCompiler& compiler)
|
|||
if(compiler.output_type() == SHADER_TYPE_VOLUME)
|
||||
compiler.parameter("is_volume", true);
|
||||
compiler.parameter(this, "use_transform");
|
||||
Transform ob_itfm = transform_transposed_inverse(ob_tfm);
|
||||
Transform ob_itfm = transform_inverse(ob_tfm);
|
||||
compiler.parameter("object_itfm", ob_itfm);
|
||||
|
||||
compiler.parameter(this, "from_dupli");
|
||||
|
|
Loading…
Reference in New Issue