mirror of
https://github.com/godotengine/godot-blender-exporter.git
synced 2026-01-05 18:10:04 +03:00
add ShaderFunction for vector element-wise multiplication (#376)
This commit is contained in:
@@ -809,6 +809,13 @@ void node_vector_math_cross_product(vec3 v1, vec3 v2, out vec3 outvec,
|
||||
outval = length(outvec);
|
||||
outvec /= outval;
|
||||
}
|
||||
"""),
|
||||
|
||||
ShaderFunction(code="""
|
||||
void node_vector_math_multiply(vec3 v1, vec3 v2, vec3 unused, float unused2,
|
||||
out vec3 outvec, out float outval) {
|
||||
outvec = vec3(v1.x*v2.x, v1.y*v2.y, v1.z*v2.z);
|
||||
}
|
||||
"""),
|
||||
|
||||
ShaderFunction(code="""
|
||||
|
||||
Reference in New Issue
Block a user