Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <charlie>2021-10-19 19:28:55 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-10-19 19:30:24 +0300
commit67dbb42236da7aa32a420707213b3fa69374a930 (patch)
tree677e4d1270faab87938e695e10f8c3f3a9e4f926 /source/blender/blenlib
parent56bf34aa174f99eb26a678a6d1bd53e96c94ed00 (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')
-rw-r--r--source/blender/blenlib/BLI_float3.hh5
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;