[Bf-blender-cvs] [9e892c6] openvdb: Cycles: use ccl_fetch to get the shading point position.
Kévin Dietrich
noreply at git.blender.org
Fri Jun 5 14:06:59 CEST 2015
Commit: 9e892c6035bec620659c76e9bf8f84838d08584b
Author: Kévin Dietrich
Date: Mon May 18 20:34:19 2015 +0200
Branches: openvdb
https://developer.blender.org/rB9e892c6035bec620659c76e9bf8f84838d08584b
Cycles: use ccl_fetch to get the shading point position.
===================================================================
M intern/cycles/kernel/svm/svm_openvdb.h
===================================================================
diff --git a/intern/cycles/kernel/svm/svm_openvdb.h b/intern/cycles/kernel/svm/svm_openvdb.h
index c47e278..c82bcb7 100644
--- a/intern/cycles/kernel/svm/svm_openvdb.h
+++ b/intern/cycles/kernel/svm/svm_openvdb.h
@@ -20,7 +20,7 @@ CCL_NAMESPACE_BEGIN
ccl_device void svm_node_openvdb(KernelGlobals *kg, ShaderData *sd, float *stack, uint4 node)
{
- float3 co = sd->P;
+ float3 co = ccl_fetch(sd, P);
uint type, out_offset, sampling, slot;
decode_node_uchar4(node.y, &slot, &type, &out_offset, &sampling);
More information about the Bf-blender-cvs
mailing list