Minor fix
This commit is contained in:
parent
577cd77e2b
commit
4b9928e16e
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ void Renderer::renderShadowVolume(const ShadowVolume &v) {
|
||||||
|
|
||||||
for(int i = 0; i < 3; ++i) {
|
for(int i = 0; i < 3; ++i) {
|
||||||
const vmml::vec3f &p1 = v.getVertex(i), &p2 = v.getVertex((i+1)%3);
|
const vmml::vec3f &p1 = v.getVertex(i), &p2 = v.getVertex((i+1)%3);
|
||||||
const vmml::vec4f &dir1 = vmml::vec4f(v.getDirection(i), 0);
|
vmml::vec4f dir1 = vmml::vec4f(v.getDirection(i), 0);
|
||||||
const vmml::vec4f &dir2 = vmml::vec4f(v.getDirection((i+1)%3), 0);
|
vmml::vec4f dir2 = vmml::vec4f(v.getDirection((i+1)%3), 0);
|
||||||
|
|
||||||
glVertex3fv(p1.array);
|
glVertex3fv(p1.array);
|
||||||
glVertex3fv(p2.array);
|
glVertex3fv(p2.array);
|
||||||
|
|
Reference in a new issue