remove useless code

This commit is contained in:
hyzboy 2022-02-11 19:53:01 +08:00
parent b1fc48d0cd
commit 6368c23170

View File

@ -35,10 +35,6 @@ private:
Renderable * ro_sphere =nullptr;
SceneNode * sn_sphere =nullptr;
double last_time;
private:
bool InitMaterial()
@ -123,7 +119,7 @@ private:
bool InitScene()
{
sn_sphere=Add(ro_sphere,envmap_mi,solid_pipeline);
auto sn_sphere=Add(ro_sphere,envmap_mi,solid_pipeline);
sn_sphere->SetLocalMatrix(scale(5,5,5));
render_root.RefreshMatrix();
@ -144,8 +140,6 @@ public:
if(!CameraAppFramework::Init(SCREEN_WIDTH,SCREEN_HEIGHT))
return(false);
last_time=GetDoubleTime();
camera->pos=Vector3f(10,10,0);
camera_control->SetTarget(Vector3f(0,0,0));