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>2020-12-24 15:45:04 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-12-24 15:53:33 +0300
commit29cd99e7fd3ccb6217a26afa5cc054c0ab97b1a8 (patch)
tree95beb2d3c901d81cf35ade41e02976ad08401436 /intern/cycles/kernel/kernel_types.h
parentc4f8aedbc2eb3f54e885ca4c86af6b405fd89c3f (diff)
Cycles: remove surface area computation for meshes with OSL
This is relatively expensive and as per the OSL spec, this value is not expected to be meaningful for non-light shaders. This makes viewport updates a little faster. As a side effect also fixes T82723, viewport refresh issue with volume density.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r--intern/cycles/kernel/kernel_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 9d00311f746..f0e65542693 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -1461,7 +1461,7 @@ typedef struct KernelObject {
Transform tfm;
Transform itfm;
- float surface_area;
+ float volume_density;
float pass_id;
float random_number;
float color[3];