MCPcopy Create free account
hub / github.com/XProger/OpenLara / renderShadows

Method renderShadows

src/level.h:2917–2963  ·  view source on GitHub ↗

void renderShadowEntity(int index, Controller *controller, Controller *player) { Box box = controller->getSpheresBox(true); mat4 m = controller->getMatrix(); vec3 pos = m * box.center(); Core::mViewInv = mat4(player->mainLightPos, pos, vec3(0, -1, 0)); Core::mView = Core::mViewInv.inverseOrtho(); Core::mProj = mat4(90.0f, 1.0f, 1.0f, 2.0f);

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

vec4Class · 0.85
setTargetFunction · 0.85
validateRenderStateFunction · 0.85
setClearColorFunction · 0.70
unbindMethod · 0.45

Tested by

no test coverage detected