SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
ShadowVolumeSphere.cpp
1#include "Game/LiveActor/ShadowVolumeSphere.hpp"
2
3ShadowVolumeSphere::~ShadowVolumeSphere() {
4
5}
6
7ShadowVolumeSphere::ShadowVolumeSphere() : ShadowVolumeModel("影描画[ボリューム球]") {
8 mRadius = 100.0f;
9 initVolumeModel("ShadowVolumeSphere");
10}
11
12void ShadowVolumeSphere::setRadius(f32 radius) {
13 mRadius = radius;
14}
15
16bool ShadowVolumeSphere::isDraw() const {
17 ShadowController* controller = getController();
18 bool ret = false;
19
20 if (controller->isProjected() && controller->isDraw()) {
21 ret = true;
22 }
23
24 return ret;
25}