mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-19 03:32:41 +00:00
more cylindrical billboarding stuff
This commit is contained in:
parent
70ca0af987
commit
8e1412a2ac
1 changed files with 5 additions and 7 deletions
|
@ -802,14 +802,12 @@ static void geo_process_object(struct Object *node) {
|
||||||
if (node->header.gfx.throwMatrix != NULL) {
|
if (node->header.gfx.throwMatrix != NULL) {
|
||||||
mtxf_mul(gMatStack[gMatStackIndex + 1], (void *) node->header.gfx.throwMatrix,
|
mtxf_mul(gMatStack[gMatStackIndex + 1], (void *) node->header.gfx.throwMatrix,
|
||||||
gMatStack[gMatStackIndex]);
|
gMatStack[gMatStackIndex]);
|
||||||
} else if (node->header.gfx.node.flags & GRAPH_RENDER_BILLBOARD) {
|
} else if (node->header.gfx.node.flags & GRAPH_RENDER_CYLBOARD) {
|
||||||
if (node->header.gfx.node.flags & GRAPH_RENDER_CYLBOARD){
|
|
||||||
mtxf_cylboard(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex],
|
mtxf_cylboard(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex],
|
||||||
node->header.gfx.pos, gCurGraphNodeCamera->roll);
|
node->header.gfx.pos, gCurGraphNodeCamera->roll);
|
||||||
} else {
|
} else if (node->header.gfx.node.flags & GRAPH_RENDER_BILLBOARD) {
|
||||||
mtxf_billboard(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex],
|
mtxf_billboard(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex],
|
||||||
node->header.gfx.pos, gCurGraphNodeCamera->roll);
|
node->header.gfx.pos, gCurGraphNodeCamera->roll);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
mtxf_rotate_zxy_and_translate(mtxf, node->header.gfx.pos, node->header.gfx.angle);
|
mtxf_rotate_zxy_and_translate(mtxf, node->header.gfx.pos, node->header.gfx.angle);
|
||||||
mtxf_mul(gMatStack[gMatStackIndex + 1], mtxf, gMatStack[gMatStackIndex]);
|
mtxf_mul(gMatStack[gMatStackIndex + 1], mtxf, gMatStack[gMatStackIndex]);
|
||||||
|
|
Loading…
Reference in a new issue