MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Float4

Method Float4

Source/Engine/Visject/ShaderGraphValue.h:296–305  ·  view source on GitHub ↗

Create float4 from X, Y, Z and W values. The X. The Y. The Z. The W. float4

Source from the content-addressed store, hash-verified

294 /// <param name="w">The W.</param>
295 /// <returns>float4</returns>
296 static ShaderGraphValue Float4(const ShaderGraphValue& x, const ShaderGraphValue& y, const ShaderGraphValue& z, const ShaderGraphValue& w)
297 {
298 return ShaderGraphValue(
299 VariantType::Types::Float4,
300 String::Format(TEXT("float4({0}, {1}, {2}, {3})"),
301 Cast(x, VariantType::Types::Float).Value,
302 Cast(y, VariantType::Types::Float).Value,
303 Cast(z, VariantType::Types::Float).Value,
304 Cast(w, VariantType::Types::Float).Value));
305 }
306
307public:
308 /// <summary>

Callers

nothing calls this directly

Calls 3

ShaderGraphValueClass · 0.85
FormatFunction · 0.50
CastFunction · 0.50

Tested by

no test coverage detected