1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add Vector4 to VisualShader

This commit is contained in:
Hendrik Brucker
2022-04-12 19:09:29 +02:00
parent a49079947b
commit cf58d23a72
27 changed files with 952 additions and 64 deletions

View File

@@ -183,7 +183,7 @@ protected:
pinfo.type = Variant::VECTOR3;
} break;
case RS::GLOBAL_VAR_TYPE_VEC4: {
pinfo.type = Variant::PLANE;
pinfo.type = Variant::QUATERNION;
} break;
case RS::GLOBAL_VAR_TYPE_RECT2: {
pinfo.type = Variant::RECT2;
@@ -304,7 +304,7 @@ static Variant create_var(RS::GlobalVariableType p_type) {
return Vector3();
}
case RS::GLOBAL_VAR_TYPE_VEC4: {
return Plane();
return Quaternion();
}
case RS::GLOBAL_VAR_TYPE_RECT2: {
return Rect2();