|
using System;
using System.Collections.Generic;
using System.Text;
namespace RayTracer
{
public class Material
{
public double ambientR, ambientG, ambientB, ambientA;
public double diffuseR, diffuseG, diffuseB, diffuseA;
public double specularR, specularG, specularB, specularA;
public double emissionR, emissionG, emissionB, emissionA;
public double shininess;
public double reflectance;
public double alpha;
public string sName;
public double refractionIndex;
public Material(string sName, double alpha, double reflectance,
double ambientR, double ambientG, double ambientB,
double specularR, double specularG, double specularB,
double shininess,
double diffuseR, double diffuseG, double diffuseB, double refractionindex)
{
this.alpha = alpha;
this.reflectance = reflectance;
this.ambientR = ambientR;
this.ambientG = ambientG;
this.ambientB = ambientB;
this.specularR = specularR;
this.specularG = specularG;
this.specularB = specularB;
this.shininess = shininess;
this.diffuseR = diffuseR;
this.diffuseG = diffuseG;
this.diffuseB = diffuseB;
this.sName = sName;
this.refractionIndex = refractionindex;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.