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>2021-07-19 19:39:43 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-07-30 19:44:26 +0300
commit3848507511a7546ab396c80f069b48de3332860f (patch)
tree86c81ecfa6921b776931b4b952ec0a58a79da68f /intern/cycles/kernel
parentb90887da5a37088d295fe86445cf62c9fc8fdea4 (diff)
Cleanup: clarify license and origin of voronoi and dithering code
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r--intern/cycles/kernel/shaders/node_voronoi_texture.osl10
-rw-r--r--intern/cycles/kernel/svm/svm_voronoi.h9
2 files changed, 14 insertions, 5 deletions
diff --git a/intern/cycles/kernel/shaders/node_voronoi_texture.osl b/intern/cycles/kernel/shaders/node_voronoi_texture.osl
index e184c26aec8..de6c697fc85 100644
--- a/intern/cycles/kernel/shaders/node_voronoi_texture.osl
+++ b/intern/cycles/kernel/shaders/node_voronoi_texture.osl
@@ -54,14 +54,18 @@ vector4 safe_divide(vector4 a, float b)
}
/*
- * Smooth Voronoi:
+ * Original code is under the MIT License, Copyright (c) 2013 Inigo Quilez.
*
+ * Smooth Voronoi:
* - https://wiki.blender.org/wiki/User:OmarSquircleArt/GSoC2019/Documentation/Smooth_Voronoi
*
- * Distance To Edge:
+ * Distance To Edge based on:
*
- * - https://www.shadertoy.com/view/llG3zy
+ * - https://www.iquilezles.org/www/articles/voronoilines/voronoilines.htm
+ * - https://www.shadertoy.com/view/ldl3W8
*
+ * With optimization to change -2..2 scan window to -1..1 for better performance,
+ * as explained in https://www.shadertoy.com/view/llG3zy.
*/
/* **** 1D Voronoi **** */
diff --git a/intern/cycles/kernel/svm/svm_voronoi.h b/intern/cycles/kernel/svm/svm_voronoi.h
index 10d17403f65..d0e7db35fab 100644
--- a/intern/cycles/kernel/svm/svm_voronoi.h
+++ b/intern/cycles/kernel/svm/svm_voronoi.h
@@ -17,14 +17,19 @@
CCL_NAMESPACE_BEGIN
/*
+ * Original code is under the MIT License, Copyright (c) 2013 Inigo Quilez.
+ *
* Smooth Voronoi:
*
* - https://wiki.blender.org/wiki/User:OmarSquircleArt/GSoC2019/Documentation/Smooth_Voronoi
*
- * Distance To Edge:
+ * Distance To Edge based on:
*
- * - https://www.shadertoy.com/view/llG3zy
+ * - https://www.iquilezles.org/www/articles/voronoilines/voronoilines.htm
+ * - https://www.shadertoy.com/view/ldl3W8
*
+ * With optimization to change -2..2 scan window to -1..1 for better performance,
+ * as explained in https://www.shadertoy.com/view/llG3zy.
*/
/* **** 1D Voronoi **** */