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

Method GetW

Source/Engine/Visject/ShaderGraphValue.cpp:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304ShaderGraphValue ShaderGraphValue::GetW() const
305{
306 switch (Type)
307 {
308 case VariantType::Float4:
309 case VariantType::Double4:
310 return ShaderGraphValue(VariantType::Types::Float, Value + _subs[3]);
311 default:
312 return One;
313 }
314}
315
316ShaderGraphValue ShaderGraphValue::Cast(const ShaderGraphValue& v, VariantType::Types to)
317{

Callers 1

ProcessGroupTexturesMethod · 0.80

Calls 1

ShaderGraphValueClass · 0.85

Tested by

no test coverage detected