mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
* CONCEPT: Basic vertex lighting engine Set the geometry mode on your model to G_LIGHTING_ENGINE_EXT, spawn a `bhvAmbientLight`, spawn some `bhvPointLight`s, and then you got yourself a mighty interesting scene. * Fixes * How did I miss this * Make light set home pos
11 lines
361 B
C
11 lines
361 B
C
/* ================ New Behaviors ================ */
|
|
|
|
const BehaviorScript bhvFlashlight[] = {
|
|
BEGIN(OBJ_LIST_DEFAULT),
|
|
ID(id_bhvNewId), // id_bhvNewId signifies a new behavior.
|
|
OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE),
|
|
CALL_NATIVE(bhv_point_light_init),
|
|
BEGIN_LOOP(),
|
|
CALL_NATIVE(bhv_flashlight_loop),
|
|
END_LOOP(),
|
|
};
|