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

Method GetZ

Source/Engine/Visject/ShaderGraphValue.cpp:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290ShaderGraphValue ShaderGraphValue::GetZ() const
291{
292 switch (Type)
293 {
294 case VariantType::Float3:
295 case VariantType::Float4:
296 case VariantType::Double3:
297 case VariantType::Double4:
298 return ShaderGraphValue(VariantType::Types::Float, Value + _subs[2]);
299 default:
300 return Zero;
301 }
302}
303
304ShaderGraphValue ShaderGraphValue::GetW() const
305{

Callers 6

RayCastMethod · 0.80
GetPatchCoordMethod · 0.80
ProcessGroupTexturesMethod · 0.80
TryGetPatchCoordToAddMethod · 0.80
GenerateTerrainMethod · 0.80
ExportTerrainMethod · 0.80

Calls 1

ShaderGraphValueClass · 0.85

Tested by

no test coverage detected