removed some unused variables

metadata
Wenzel Jakob 2011-08-15 19:11:44 -04:00
parent 615a3b00ae
commit 8659d8aa50
2 changed files with 1 additions and 6 deletions

View File

@ -317,7 +317,7 @@ public:
bool choseSpecular = hasSpecular;
Point2 sample(_sample);
Float probSpecular, probDiffuse;
Float probSpecular;
if (hasSpecular && hasDiffuse) {
/* Find the probability of sampling the diffuse component */
probSpecular = 1 - m_roughTransmittance->eval(Frame::cosTheta(bRec.wi));
@ -327,8 +327,6 @@ public:
(probSpecular*m_specularSamplingWeight +
(1-probSpecular) * (1-m_specularSamplingWeight));
probDiffuse = 1 - probSpecular;
if (sample.x <= probSpecular) {
sample.x /= probSpecular;
} else {

View File

@ -104,7 +104,6 @@ public:
std::vector<Point2> texcoords;
std::vector<OBJTriangle> triangles;
bool hasNormals = false, hasTexcoords = false;
bool firstVertex = true;
BSDF *currentMaterial = NULL;
std::string name = m_name, line;
std::set<std::string> geomNames;
@ -151,7 +150,6 @@ public:
geomIdx++;
hasNormals = false;
hasTexcoords = false;
firstVertex = false;
} else {
nameBeforeGeometry = true;
}
@ -180,7 +178,6 @@ public:
hasTexcoords = true;
} else if (buf == "f") {
std::string tmp;
firstVertex = true;
OBJTriangle t;
iss >> tmp; parse(t, 0, tmp);
iss >> tmp; parse(t, 1, tmp);