Fix T61502: Cycles wrong other object texture coordinates in OSL.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Feb 2019 14:01:54 +0000 (15:01 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Feb 2019 14:03:08 +0000 (15:03 +0100)
The row/column major matrix conversion was done twice.

intern/cycles/render/nodes.cpp

index 77a4526..d32b151 100644 (file)
@@ -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");