From 3848507511a7546ab396c80f069b48de3332860f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 19 Jul 2021 18:39:43 +0200 Subject: Cleanup: clarify license and origin of voronoi and dithering code --- intern/cycles/kernel/shaders/node_voronoi_texture.osl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'intern/cycles/kernel/shaders') 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 **** */ -- cgit v1.2.3