Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GX_SetBlendMode(GX_BM_BLEND, GX_BL_ZERO, GX_BL_SRCALPHA, GX_LO_SET);
- guMtxIdentity(model);
- guMtxScaleApply(model, model, BALL_SCALE*3, BALL_SCALE*3, BALL_SCALE*3);
- guMtxTransApply(model, model, alpha*ballInfo->location.x + (1-alpha)*ballInfo->lastLocation.x +
- -SHADOW_CONSTANT*(alpha*ballInfo->location.y + (1-alpha)*ballInfo->lastLocation.y),
- SHADOW_HEIGHT,
- alpha*ballInfo->location.z + (1-alpha)*ballInfo->lastLocation.z);
- guMtxConcat(view,model,modelview);
- GX_LoadPosMtxImm(modelview, GX_PNMTX0);
- guMtxInverse(modelview,mvi);
- guMtxTranspose(mvi,modelview);
- GX_LoadNrmMtxImm(modelview, GX_PNMTX0);
- // GX_LoadTexObj(&(ballTexture), GX_TEXMAP0);
- GX_CallDispList(shadowDisplayList, shadowListSize);
- GX_SetBlendMode(GX_BM_NONE, GX_BL_SRCALPHA, GX_BL_ONE, GX_LO_SET);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement