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

Function ReadNormalizedHeight

Source/Engine/Terrain/TerrainPatch.cpp:261–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261FORCE_INLINE float ReadNormalizedHeight(const Color32& raw)
262{
263 const uint16 quantizedHeight = raw.R | (raw.G << 8);
264 const float normalizedHeight = (float)quantizedHeight / MAX_uint16;
265 return normalizedHeight;
266}
267
268FORCE_INLINE bool ReadIsHole(const Color32& raw)
269{

Callers 3

CookCollisionFunction · 0.85
ModifyCollisionFunction · 0.85
CacheHeightDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected