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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-12-26 14:54:03 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2014-12-26 15:00:36 +0300
commitcf178f71ac47453e635d5adc07b33a7539b9ac5e (patch)
tree3ead6fabbf031721928b5e35dc4bcdc068907cfa /source
parent2b595579e360108c309609f3734466d5641eef67 (diff)
Fix T42641, Graphical fragments showing on Blender 2.71 and higher when baking.
Safe for 2.73... This revert rB9b0ab890676790bb1e8e77797629b889ea66f69e - needed to set that threshold to a small negative value to remove the last artefacts reported in T39735, but now I could not reproduce any with the previous 0.0f value, so restoring it for the time being. If this 'shadowed neighbor face' case re-appears, we can always choose a value in-between, like -1e-18f...
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/include/rayintersection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/include/rayintersection.h b/source/blender/render/intern/include/rayintersection.h
index 9c0835af56f..3607e66a237 100644
--- a/source/blender/render/intern/include/rayintersection.h
+++ b/source/blender/render/intern/include/rayintersection.h
@@ -121,7 +121,7 @@ typedef struct Isect {
/* arbitrary, but can't use e.g. FLT_MAX because of precision issues */
#define RE_RAYTRACE_MAXDIST 1e15f
-#define RE_RAYTRACE_EPSILON -FLT_EPSILON
+#define RE_RAYTRACE_EPSILON 0.0f
#ifdef __cplusplus
}