MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / CorneaZ

Function CorneaZ

SampleFramework11/v1.02/Graphics/Model.cpp:477–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477static float CorneaZ(float r)
478{
479 float x = 2028.0f - 25.0f * r * r;
480 return 0.13333f * (1.73205f * std::sqrt(x) - 78.0f);
481}
482
483// Initializes the mesh as a plane
484void Mesh::InitCornea(ID3D11Device* device, uint32 materialIdx)

Callers 1

InitCorneaMethod · 0.85

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected