diff options
author | Charlie Jolly <charlie> | 2021-10-19 19:28:55 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2021-10-19 19:30:24 +0300 |
commit | 67dbb42236da7aa32a420707213b3fa69374a930 (patch) | |
tree | 677e4d1270faab87938e695e10f8c3f3a9e4f926 /source/blender/blenlib/BLI_float3.hh | |
parent | 56bf34aa174f99eb26a678a6d1bd53e96c94ed00 (diff) |
Geometry Nodes: Add Wave texture node
Port shader wave texture node
Reviewed By: JacquesLucke
Differential Revision: https://developer.blender.org/D12733
Diffstat (limited to 'source/blender/blenlib/BLI_float3.hh')
-rw-r--r-- | source/blender/blenlib/BLI_float3.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float3.hh b/source/blender/blenlib/BLI_float3.hh index 8263ef72584..6ee0c4b973b 100644 --- a/source/blender/blenlib/BLI_float3.hh +++ b/source/blender/blenlib/BLI_float3.hh @@ -62,6 +62,11 @@ struct float3 { return {a.x + b.x, a.y + b.y, a.z + b.z}; } + friend float3 operator+(const float3 &a, const float &b) + { + return {a.x + b, a.y + b, a.z + b}; + } + float3 &operator+=(const float3 &b) { this->x += b.x; |