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
This commit is contained in:
OmarSquircleArt
2019-09-04 17:54:32 +02:00
parent 45d4c92579
commit 23564583a4
37 changed files with 2466 additions and 613 deletions

View File

@@ -15,7 +15,6 @@
*/
#include "stdosl.h"
#include "node_texture.h"
/* Checker */