Fix #29860: cycles musgrave scale input not working correct.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 12 Jan 2012 17:13:56 +0000 (17:13 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 12 Jan 2012 17:13:56 +0000 (17:13 +0000)
intern/cycles/kernel/svm/svm_musgrave.h

index 34cf7868f07264aac5650515c69d9b1b4e232967..9444dc20e6e3083bef675623e62ba24a2dc1f5f5 100644 (file)
@@ -213,7 +213,7 @@ __device void svm_node_tex_musgrave(KernelGlobals *kg, ShaderData *sd, float *st
 
        decode_node_uchar4(node.y, &type, &co_offset, &color_offset, &fac_offset);
        decode_node_uchar4(node.z, &dimension_offset, &lacunarity_offset, &detail_offset, &offset_offset);
-       decode_node_uchar4(node.z, &gain_offset, &scale_offset, NULL, NULL);
+       decode_node_uchar4(node.w, &gain_offset, &scale_offset, NULL, NULL);
 
        float3 co = stack_load_float3(stack, co_offset);
        float dimension = stack_load_float_default(stack, dimension_offset, node2.x);