Blender Git Loki

Git Commits -> Revision d375889

Revision d375889 by Charlie Jolly (master)
March 23, 2021, 09:59 (GMT)
Nodes: Add Refract and Faceforward functions to Vector Maths nodes

Cycles, Eevee, OSL, Geo, Attribute

Based on outdated refract patch D6619 by @cubic_sloth

`refract` and `faceforward` are standard functions in GLSL, OSL and Godot shader languages.
Adding these functions provides Blender shader artists access to these standard functions.

Reviewed By: brecht

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

Commit Details:

Full Hash: d3758892987d76749fdf1211ed27ff77f39b5b3b
Parent Commit: 4c19fca
Lines Changed: +264, -42

17 Modified Paths:

/intern/cycles/kernel/shaders/node_math.h (+7, -0) (Diff)
/intern/cycles/kernel/shaders/node_vector_math.osl (+6, -0) (Diff)
/intern/cycles/kernel/svm/svm_math.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_math_util.h (+15, -7) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -0) (Diff)
/intern/cycles/render/nodes.cpp (+8, -5) (Diff)
/intern/cycles/util/util_math_float3.h (+16, -0) (Diff)
/source/blender/blenlib/BLI_float3.hh (+18, -0) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_vector_math.glsl (+12, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+47, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_vector_math.cc (+50, -2) (Diff)
/source/blender/nodes/intern/math_functions.cc (+4, -0) (Diff)
/source/blender/nodes/intern/node_util.c (+10, -9) (Diff)
/source/blender/nodes/intern/node_util.h (+1, -0) (Diff)
/source/blender/nodes/NOD_math_functions.hh (+29, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+32, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021