mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
25 lines
558 B
C++
25 lines
558 B
C++
#include "Game/LiveActor/ShadowVolumeSphere.hpp"
|
|
|
|
ShadowVolumeSphere::~ShadowVolumeSphere() {
|
|
|
|
}
|
|
|
|
ShadowVolumeSphere::ShadowVolumeSphere() : ShadowVolumeModel("影描画[ボリューム球]") {
|
|
mRadius = 100.0f;
|
|
initVolumeModel("ShadowVolumeSphere");
|
|
}
|
|
|
|
void ShadowVolumeSphere::setRadius(f32 radius) {
|
|
mRadius = radius;
|
|
}
|
|
|
|
bool ShadowVolumeSphere::isDraw() const {
|
|
ShadowController* controller = getController();
|
|
bool ret = false;
|
|
|
|
if (controller->isProjected() && controller->isDraw()) {
|
|
ret = true;
|
|
}
|
|
|
|
return ret;
|
|
} |