diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-10 18:26:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-10 18:26:51 +0400 |
commit | b98ccf699878d70b7cbfdd7863440c34326a5569 (patch) | |
tree | 7dde3d3deddedb5d54f2a45ffbb517f2999a83dc /intern/cycles/kernel/svm/bsdf_ward.h | |
parent | abc601d10ee51aa8de83004094e2e6c73e96e2eb (diff) |
Cycles: amd opencl compatibility fixes.
Diffstat (limited to 'intern/cycles/kernel/svm/bsdf_ward.h')
-rw-r--r-- | intern/cycles/kernel/svm/bsdf_ward.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/intern/cycles/kernel/svm/bsdf_ward.h b/intern/cycles/kernel/svm/bsdf_ward.h index 9f857b32468..c54418afa77 100644 --- a/intern/cycles/kernel/svm/bsdf_ward.h +++ b/intern/cycles/kernel/svm/bsdf_ward.h @@ -166,9 +166,7 @@ __device int bsdf_ward_sample(const ShaderData *sd, float randu, float randv, fl h = h.x * X + h.y * Y + h.z * m_N; // generate the final sample float oh = dot(h, sd->I); - omega_in->x = 2 * oh * h.x - sd->I.x; - omega_in->y = 2 * oh * h.y - sd->I.y; - omega_in->z = 2 * oh * h.z - sd->I.z; + *omega_in = 2.0f * oh * h - sd->I; if(dot(sd->Ng, *omega_in) > 0) { float cosNI = dot(m_N, *omega_in); if(cosNI > 0) { |