mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(world): add CWorldScene class
This commit is contained in:
parent
1326c896df
commit
b1694c2897
12 changed files with 126 additions and 23 deletions
|
|
@ -6,9 +6,12 @@
|
|||
#include "gx/Device.hpp"
|
||||
#include "gx/RenderState.hpp"
|
||||
#include "world/CWorld.hpp"
|
||||
#include "world/CWorldScene.hpp"
|
||||
#include "gameui/camera/CGCamera.hpp"
|
||||
#include "event/EvtKeyDown.hpp"
|
||||
|
||||
#include "model/Model2.hpp"
|
||||
|
||||
#include <bc/Memory.hpp>
|
||||
#include <tempest/Matrix.hpp>
|
||||
|
||||
|
|
@ -160,6 +163,16 @@ void CGWorldFrame::OnWorldRender() {
|
|||
// TODO
|
||||
|
||||
GxRsPush();
|
||||
GxRsSet(GxRs_Multisample, 1);
|
||||
|
||||
if (true) {
|
||||
CImVector clearColor = { 0, 0, 0, 0xFF };
|
||||
GxSceneClear(3, clearColor);
|
||||
}
|
||||
|
||||
if (CWorld::GetEnables() & 0x20000000) {
|
||||
GxMasterEnableSet(GxMasterEnable_PolygonFill, 0);
|
||||
}
|
||||
|
||||
C3Vector saveMin;
|
||||
C3Vector saveMax;
|
||||
|
|
@ -174,7 +187,11 @@ void CGWorldFrame::OnWorldRender() {
|
|||
|
||||
CShaderEffect::UpdateProjMatrix();
|
||||
|
||||
CWorld::Render();
|
||||
CWorld::Render(C3Vector(), 0.0f);
|
||||
|
||||
if (CWorldScene::s_m2Scene) {
|
||||
CWorldScene::s_m2Scene->Draw(M2PASS_0);
|
||||
}
|
||||
|
||||
GxRsPop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue