Exemplo n.º 1
0
 public MatMatte(Vector3 Ca, Vector3 Cd, float Ka = 0.25f, float Kd = 0.75f)
 {
     ambientBRDF = new BRDFlambertain(Ka, Ca);
     diffuseBRDF = new BRDFlambertain(Kd, Cd);
 }
Exemplo n.º 2
0
 public MatPhong(float ka, float kd, float ks, Vector3 ca, Vector3 cd, Vector3 cs, float exp = 1.0f)
 {
     m_specularBRDF = new BRDFGlossySpecular(ks, cs, exp);
     m_diffuseBRDF  = new BRDFlambertain(kd, cd);
     m_ambientBRDF  = new BRDFlambertain(ka, ca);
 }