bugfix for the bugfix
parent
f042892686
commit
3fc8b212e3
|
@ -186,13 +186,13 @@ public:
|
||||||
oss << "uniform vec3 " << evalName << "_intensity;" << endl
|
oss << "uniform vec3 " << evalName << "_intensity;" << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< "vec3 " << evalName << "_area(vec2 uv) {" << endl
|
<< "vec3 " << evalName << "_area(vec2 uv) {" << endl
|
||||||
<< " return " << evalName << "_intensity;" << endl
|
<< " return " << evalName << "_intensity * 3.1415;" << endl
|
||||||
<< "}" << endl
|
<< "}" << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< "vec3 " << evalName << "_dir(vec3 wo) {" << endl
|
<< "vec3 " << evalName << "_dir(vec3 wo) {" << endl
|
||||||
<< " if (wo.z < 0.0)" << endl
|
<< " if (wo.z < 0.0)" << endl
|
||||||
<< " return vec3(0.0);" << endl
|
<< " return vec3(0.0);" << endl
|
||||||
<< " return vec3(1.0);" << endl
|
<< " return vec3(0.31831);" << endl
|
||||||
<< "}" << endl;
|
<< "}" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue