更改了specular算法,但是有点问题。。。而且高光区有点象是VS算的一样,怀疑是NORMAL在VS算的原因。但fs没有GetLocalToWorld函数,需要尝试修复。
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user