Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_light.cc')
-rw-r--r--source/blender/draw/engines/eevee/eevee_light.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_light.cc b/source/blender/draw/engines/eevee/eevee_light.cc
index ab09ff4b0e5..bcc68d773f5 100644
--- a/source/blender/draw/engines/eevee/eevee_light.cc
+++ b/source/blender/draw/engines/eevee/eevee_light.cc
@@ -76,8 +76,8 @@ void Light::sync(ShadowModule &shadows, const Object *ob, float threshold)
this->color = vec3(&la->r) * la->energy;
normalize_m4_m4_ex(this->object_mat, ob->obmat, scale);
/* Make sure we have consistent handedness (in case of negatively scaled Z axis). */
- vec3 cross = vec3::cross(this->_right, this->_up);
- if (vec3::dot(cross, this->_back) < 0.0f) {
+ vec3 cross = math::cross(float3(this->_right), float3(this->_up));
+ if (math::dot(cross, float3(this->_back)) < 0.0f) {
negate_v3(this->_up);
}