Blender Git Loki

Git Commits -> Revision 2356458

Revision 2356458 by Omar Emara (master)
September 4, 2019, 15:54 (GMT)
Shading: Extend Noise node to other dimenstions.

This patch extends perlin noise to operate in 1D, 2D, 3D, and 4D
space. The noise code has also been refactored to be more readable.

The Color output and distortion patterns changed, so this patch
breaks backward compatibility. This is due to the fact that we
now use random offsets as noise seeds, as opposed to swizzling
and constants offsets.

Reviewers: brecht, JacquesLucke

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

Commit Details:

Full Hash: 23564583a4988778b4c43496fd21818b286f6ba1
Parent Commit: 45d4c92
Lines Changed: +2419, -566

4 Added Paths:

/intern/cycles/kernel/shaders/node_noise.h (+198, -0) (View)
/intern/cycles/kernel/shaders/vector2.h (+291, -0) (View)
/intern/cycles/kernel/shaders/vector4.h (+327, -0) (View)
/intern/cycles/kernel/svm/svm_fractal_noise.h (+131, -0) (View)

2 Deleted Paths:

/intern/cycles/kernel/shaders/node_texture.h (+0, -165)
/intern/cycles/kernel/svm/svm_texture.h (+0, -63)

31 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+1, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -1) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+3, -1) (Diff)
/intern/cycles/kernel/shaders/node_brick_texture.osl (+0, -1) (Diff)
/intern/cycles/kernel/shaders/node_checker_texture.osl (+0, -1) (Diff)
/intern/cycles/kernel/shaders/node_gradient_texture.osl (+0, -1) (Diff)
/intern/cycles/kernel/shaders/node_ies_light.osl (+0, -1) (Diff)
/intern/cycles/kernel/shaders/node_magic_texture.osl (+0, -1) (Diff)
/intern/cycles/kernel/shaders/node_musgrave_texture.osl (+13, -13) (Diff)
/intern/cycles/kernel/shaders/node_noise_texture.osl (+108, -20) (Diff)
/intern/cycles/kernel/shaders/node_voronoi_texture.osl (+9, -1) (Diff)
/intern/cycles/kernel/shaders/node_wave_texture.osl (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_musgrave.h (+12, -12) (Diff)
/intern/cycles/kernel/svm/svm_noise.h (+490, -170) (Diff)
/intern/cycles/kernel/svm/svm_noisetex.h (+153, -25) (Diff)
/intern/cycles/kernel/svm/svm_wave.h (+1, -1) (Diff)
/intern/cycles/render/nodes.cpp (+35, -18) (Diff)
/intern/cycles/render/nodes.h (+2, -1) (Diff)
/intern/cycles/util/util_hash.h (+103, -0) (Diff)
/intern/cycles/util/util_math.h (+6, -0) (Diff)
/intern/cycles/util/util_ssef.h (+21, -5) (Diff)
/intern/cycles/util/util_ssei.h (+9, -0) (Diff)
/source/blender/blenloader/intern/versioning_cycles.c (+22, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+8, -0) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_fractal_noise.glsl (+86, -7) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_noise.glsl (+252, -32) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_tex_noise.glsl (+93, -13) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+10, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.c (+28, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021