Blender Git Commit Log

Git Commits -> Revision 613b37b

Revision 613b37b by Omar Emara (master)
September 12, 2019, 11:09 (GMT)
Shading: Add More Features To The Voronoi Node.

This patch allows the Voronoi node to operate in 1D, 2D, and 4D space.
It also adds a Randomness input to control the randomness of the texture.
Additionally, it adds three new modes of operation:

- Smooth F1: A smooth version of F1 Voronoi with no discontinuities.
- Distance To Edge: Returns the distance to the edges of the cells.
- N-Sphere Radius: Returns the radius of the n-sphere inscribed in
the cells. In other words, it is half the distance between the
closest feature point and the feature point closest to it.

And it removes the following three modes of operation:

- F3.
- F4.
- Cracks.

The Distance metric is now called Euclidean, and it computes the actual
euclidean distance as opposed to the old method of computing the squared
euclidean distance.

This breaks backward compatibility in many ways, including the base case.

Reviewers: brecht, JacquesLucke

Differential Revision: https://developer.blender.org/D5743

Commit Details:

Full Hash: 613b37bc2c81202a34346b40465923e8f47cebbf
Parent Commit: 0137509
Lines Changed: +3779, -524

1 Added Path:

/intern/cycles/kernel/shaders/node_hash.h (+81, -0) (View)

1 Deleted Path:

/source/blender/gpu/shaders/material/gpu_shader_material_cell_noise.glsl (+0, -17)

24 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+2, -2) (Diff)
/intern/cycles/kernel/closure/bsdf_util.h (+0, -14) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/shaders/node_voronoi_texture.osl (+960, -105) (Diff)
/intern/cycles/kernel/svm/svm.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_noise.h (+0, -24) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+5, -10) (Diff)
/intern/cycles/kernel/svm/svm_voronoi.h (+1074, -143) (Diff)
/intern/cycles/render/nodes.cpp (+65, -39) (Diff)
/intern/cycles/render/nodes.h (+2, -2) (Diff)
/intern/cycles/util/util_math.h (+15, -0) (Diff)
/intern/cycles/util/util_math_float2.h (+31, -0) (Diff)
/intern/cycles/util/util_math_float3.h (+12, -0) (Diff)
/intern/cycles/util/util_math_float4.h (+42, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_cycles.c (+254, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+6, -2) (Diff)
/source/blender/gpu/CMakeLists.txt (+0, -1) (Diff)
/source/blender/gpu/intern/gpu_material_library.h (+1, -10) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_math_util.glsl (+26, -0) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_tex_voronoi.glsl (+1039, -91) (Diff)
/source/blender/makesdna/DNA_node_types.h (+17, -15) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+33, -19) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.c (+111, -28) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021