added SceneAppFramework, global_descriptor.Bind used auto-mode.
This commit is contained in:
@@ -27,7 +27,7 @@ static float lumiance_data[2]={1,1};
|
||||
static Color4f white_color(1,1,1,1);
|
||||
static Color4f yellow_color(1,1,0,1);
|
||||
|
||||
class TestApp:public CameraAppFramework
|
||||
class TestApp:public SceneAppFramework
|
||||
{
|
||||
Color4f color;
|
||||
|
||||
@@ -35,9 +35,6 @@ class TestApp:public CameraAppFramework
|
||||
|
||||
private:
|
||||
|
||||
SceneNode render_root;
|
||||
RenderList * render_list =nullptr;
|
||||
|
||||
Material * material =nullptr;
|
||||
MaterialInstance * mi_plane_grid =nullptr;
|
||||
MaterialInstance * mi_line =nullptr;
|
||||
@@ -66,8 +63,6 @@ private:
|
||||
material=db->CreateMaterial(mci);
|
||||
if(!material)return(false);
|
||||
|
||||
db->global_descriptor.Bind(material);
|
||||
|
||||
mi_plane_grid=db->CreateMaterialInstance(material);
|
||||
if(!mi_plane_grid)return(false);
|
||||
mi_plane_grid->WriteMIData(white_color);
|
||||
|
Reference in New Issue
Block a user