removed Std3D/VertexLum2D.mtl
This commit is contained in:
parent
8f9ccc3aa1
commit
1abe8770d7
@ -30,7 +30,7 @@ private:
|
|||||||
cfg.local_to_world=true;
|
cfg.local_to_world=true;
|
||||||
cfg.position_format=VAT_VEC2;
|
cfg.position_format=VAT_VEC2;
|
||||||
|
|
||||||
material=db->LoadMaterial("Std3D/VertexLum2D",&cfg);
|
material=db->LoadMaterial("Std3D/VertexLum3D",&cfg);
|
||||||
if(!material)return(false);
|
if(!material)return(false);
|
||||||
|
|
||||||
Color4f GridColor;
|
Color4f GridColor;
|
||||||
|
@ -54,10 +54,11 @@ private:
|
|||||||
|
|
||||||
cfg.local_to_world=true;
|
cfg.local_to_world=true;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
cfg.mtl_name="VertexLuminance2D"; //注意必须用不同名字,未来改名材质文件名+cfg hash名
|
||||||
cfg.position_format=VAT_VEC2;
|
cfg.position_format=VAT_VEC2;
|
||||||
|
|
||||||
mtl_plane_grid=db->LoadMaterial("Std3D/VertexLum2D",&cfg);
|
mtl_plane_grid=db->LoadMaterial("Std3D/VertexLum3D",&cfg);
|
||||||
if(!mtl_plane_grid)return(false);
|
if(!mtl_plane_grid)return(false);
|
||||||
|
|
||||||
mi_plane_grid=db->CreateMaterialInstance(mtl_plane_grid,nullptr,&white_color);
|
mi_plane_grid=db->CreateMaterialInstance(mtl_plane_grid,nullptr,&white_color);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user