removed some unused variables
parent
615a3b00ae
commit
8659d8aa50
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue