MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetConstantColor

Method GetConstantColor

engine/Poseidon/World/Scene/Object.cpp:1577–1585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1575 return 0; // no collision possible
1576 }
1577 Vector3Val min = shape->Min();
1578 Vector3Val max = shape->Max();
1579 return (max - min).SizeXZ() * 0.5;
1580}
1581
1582PackedColor Object::GetConstantColor() const
1583{
1584 static const PackedColor halfOpaqueWhite(Color(1, 1, 1, 0.5));
1585#if _ENABLE_CHEATS
1586 if (CHECK_DIAG(DETransparent))
1587 return halfOpaqueWhite;
1588#endif

Callers 6

DoMaterialLightingPMethod · 0.45
DoLineLightingMethod · 0.45
DoLightLightingMethod · 0.45
DoLightingMethod · 0.45
DoMaterialLightingQMethod · 0.45
PrepareMeshTLImplMethod · 0.45

Calls 3

ColorClass · 0.85
PackedColorRGBFunction · 0.50
A8Method · 0.45

Tested by

no test coverage detected