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:
authorAndrii Symkin <pembem22>2022-06-23 15:29:17 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-06-23 16:02:53 +0300
commitc2a2f3553aed58ae9e4c165f8bfcad2b31dcf74b (patch)
tree236fca0080484dc7e9b1f8816e2770b4422db00d /intern/cycles/scene/object.cpp
parentb8403b065e222faff3dfb3e2e9aa1b3d3f56c555 (diff)
Cycles: unify math functions names
This patch unifies the names of math functions for different data types and uses overloading instead. The goal is to make it possible to swap out all the float3 variables containing RGB data with something else, with as few as possible changes to the code. It's a requirement for future spectral rendering patches. Differential Revision: https://developer.blender.org/D15276
Diffstat (limited to 'intern/cycles/scene/object.cpp')
-rw-r--r--intern/cycles/scene/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/scene/object.cpp b/intern/cycles/scene/object.cpp
index 3a1c177fe3b..2126b23d82e 100644
--- a/intern/cycles/scene/object.cpp
+++ b/intern/cycles/scene/object.cpp
@@ -340,12 +340,12 @@ float Object::compute_volume_step_size() const
if (metadata.use_transform_3d) {
voxel_tfm = tfm * transform_inverse(metadata.transform_3d);
}
- voxel_step_size = min3(fabs(transform_direction(&voxel_tfm, size)));
+ voxel_step_size = reduce_min(fabs(transform_direction(&voxel_tfm, size)));
}
else if (volume->get_object_space()) {
/* User specified step size in object space. */
float3 size = make_float3(voxel_step_size, voxel_step_size, voxel_step_size);
- voxel_step_size = min3(fabs(transform_direction(&tfm, size)));
+ voxel_step_size = reduce_min(fabs(transform_direction(&tfm, size)));
}
if (voxel_step_size > 0.0f) {