更改了specular算法,但是有点问题。。。而且高光区有点象是VS算的一样,怀疑是NORMAL在VS算的原因。但fs没有GetLocalToWorld函数,需要尝试修复。

This commit is contained in:
2024-03-12 00:42:32 +08:00
parent 5347ac7091
commit f6e61e70ce
2 changed files with 32 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ static Color4f white_color(1,1,1,1);
static mtl::blinnphong::SunLight sun_light=
{
Vector4f(0,0,1,0),
Vector4f(1,0,0,1)
Vector4f(1,0.95,0.9,1)
};
class TestApp:public SceneAppFramework
@@ -137,7 +137,7 @@ private:
//Sphere
{
prim_sphere=CreateSphere(db,mi_sphere->GetVIL(),16);
prim_sphere=CreateSphere(db,mi_sphere->GetVIL(),32);
}
return(true);