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:
authorBrecht Van Lommel <brecht@blender.org>2022-08-09 15:28:19 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-08-09 17:59:05 +0300
commit230f9ade64844a50ea02461cfa005f364de09aa9 (patch)
tree2e03313888537044cb0595986ac300a9c3e2ca0a /intern/cycles/util/transform.cpp
parent286e535071c8f9a906c6c36b8dac0eda6384c79a (diff)
Cycles: make transform inverse match Embree exactly
Helps improve ray-tracing precision. This is a bit complicated as it requires different implementation depending on the CPU architecture.
Diffstat (limited to 'intern/cycles/util/transform.cpp')
-rw-r--r--intern/cycles/util/transform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/transform.cpp b/intern/cycles/util/transform.cpp
index 0b87e88871d..cb985c65dd8 100644
--- a/intern/cycles/util/transform.cpp
+++ b/intern/cycles/util/transform.cpp
@@ -11,7 +11,7 @@ CCL_NAMESPACE_BEGIN
/* Transform Inverse */
-static bool transform_matrix4_gj_inverse(float R[][4], float M[][4])
+static bool projection_matrix4_inverse(float R[][4], float M[][4])
{
/* SPDX-License-Identifier: BSD-3-Clause
* Adapted from code:
@@ -98,7 +98,7 @@ ProjectionTransform projection_inverse(const ProjectionTransform &tfm)
memcpy(R, &tfmR, sizeof(R));
memcpy(M, &tfm, sizeof(M));
- if (UNLIKELY(!transform_matrix4_gj_inverse(R, M))) {
+ if (UNLIKELY(!projection_matrix4_inverse(R, M))) {
return projection_identity();
}