Commit 01f7c225 by Philipp Adolf

Fix constants

parent 8d23b49c
......@@ -56,11 +56,11 @@ void main(){
norm = normalize(0.5f*a.norm + 0.5f*b.norm);
}
else if (s == 3){
pos = 0.725f*a.pos + 0.375f*b.pos;
pos = 5.0f/8.0f*a.pos + 3.0f/8.0f*b.pos;
norm = normalize(0.725f*a.norm + 0.375f*b.norm);
}
else if (s == 4){
pos = 0.375f*a.pos + 0.725f*b.pos;
pos = 3.0f/8.0f*a.pos + 5.0f/8.0f*b.pos;
norm = normalize(0.375f*a.norm + 0.725f*b.norm);
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment