Fix World Triplanar Texture node to support displacement and float4 value

This commit is contained in:
Wojtek Figat
2024-08-05 14:37:31 +02:00
parent d6e99071aa
commit 979ab9f6ee
2 changed files with 11 additions and 23 deletions

View File

@@ -404,9 +404,9 @@ namespace FlaxEditor.Surface.Archetypes
Elements = new[]
{
NodeElementArchetype.Factory.Input(0, "Texture", true, typeof(FlaxEngine.Object), 0),
NodeElementArchetype.Factory.Input(1, "Scale", true, typeof(Float3), 1, 0),
NodeElementArchetype.Factory.Input(1, "Scale", true, typeof(Float4), 1, 0),
NodeElementArchetype.Factory.Input(2, "Blend", true, typeof(float), 2, 1),
NodeElementArchetype.Factory.Output(0, "Color", typeof(Float3), 3)
NodeElementArchetype.Factory.Output(0, "Color", typeof(Float4), 3)
}
},
new NodeArchetype