fixed bug in util/Vector::reflect(), Phong shading getting much closer
git-svn-id: svn://anubis/fart/trunk@73 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
41b4354d52
commit
6fbdf46122
2 files changed
+1
-3
No files matched your search
@@ -151,8 +151,6 @@ void Scene::renderPixel(int x, int y, unsigned char * pixel)
|
||||
}
|
||||
|
||||
/* take the average of all the samples as the final pixel value */
|
||||
if (finalColor.r > 1.0 || finalColor.g > 1.0 || finalColor.b > 1.0)
|
||||
cerr << "Error: " << finalColor << endl;
|
||||
pixel[BMP_RED] = (unsigned char)
|
||||
(0xFF * finalColor.r / m_multisample_level_squared);
|
||||
pixel[BMP_GREEN] = (unsigned char)
|
||||
|
||||
Reference in new issue
Block a user