updated to GLM...but only ortho matrix is OK.

This commit is contained in:
2021-09-24 20:49:20 +08:00
parent 6c6ee96be1
commit 91460aba5a
11 changed files with 39 additions and 40 deletions

View File

@@ -71,12 +71,12 @@ private:
bool InitMaterial()
{
light.color.Set(1,1,1,1);
light.position.Set(1000,1000,1000,1.0);
light.color=Vector4f(1,1,1,1);
light.position=Vector4f(1000,1000,1000,1.0);
phong.BaseColor.Set(1,1,1,1);
phong.BaseColor=Vector4f(1,1,1,1);
phong.ambient=0.5;
phong.specular.Set(0.3,0.3,0.3,32);
phong.specular=Vector4f(0.3,0.3,0.3,32);
{
axis_material=db->CreateMaterial(OS_TEXT("res/material/VertexColor3D"));
@@ -162,7 +162,7 @@ private:
{
struct CubeCreateInfo cci;
cci.has_color=true;
cci.color.Set(1,1,1,1);
cci.color=Vector4f(1,1,1,1);
ro_cube=CreateRenderableCube(db,material,&cci);
}