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 /source/blender/gpu
parentb90887da5a37088d295fe86445cf62c9fc8fdea4 (diff)
Cleanup: clarify license and origin of voronoi and dithering code
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl
index 40f76b9cacc..0f69a4b9aa0 100644
--- a/source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl
+++ b/source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl
@@ -1,11 +1,17 @@
/*
+ * 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.iquilezles.org/www/articles/voronoilines/voronoilines.htm
+ * - https://www.shadertoy.com/view/ldl3W8
*
- * - https://www.shadertoy.com/view/llG3zy
+ * With optimization to change -2..2 scan window to -1..1 for better performance,
+ * as explained in https://www.shadertoy.com/view/llG3zy.
*
*/