Add HSVToRGB

This commit is contained in:
W2.Wizard
2021-02-19 18:23:23 +01:00
parent 115d6e46a8
commit da24a474ea
2 changed files with 33 additions and 0 deletions

View File

@@ -815,6 +815,23 @@ namespace FlaxEditor.Surface.Archetypes
NodeElementArchetype.Factory.Output(0, string.Empty, typeof(Vector3), 1),
}
},
new NodeArchetype
{
TypeID = 36,
Title = "HSVToRGB",
Description = "Converts a HSV value to linear RGB",
Flags = NodeFlags.MaterialGraph,
Size = new Vector2(160, 25),
DefaultValues = new object[]
{
new Vector3(240, 1, 1),
},
Elements = new[]
{
NodeElementArchetype.Factory.Input(0, "HSV", true, typeof(Vector3), 0, 0),
NodeElementArchetype.Factory.Output(0, "RGB", typeof(Vector3), 1),
}
}
};
}
}