Fix the macro parameter to f32 to work correctly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@744 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
9603bbfcdf
commit
6ae1881a86
|
@ -178,8 +178,9 @@ namespace core
|
|||
//! false if it is backfacing.
|
||||
bool isFrontFacing(const vector3d<T>& lookDirection) const
|
||||
{
|
||||
vector3d<T> n = getNormal().normalize();
|
||||
return F32_LOWER_EQUAL_0(n.dotProduct(lookDirection));
|
||||
const vector3d<T> n = getNormal().normalize();
|
||||
const f32 d = (f32)n.dotProduct(lookDirection);
|
||||
return F32_LOWER_EQUAL_0(d);
|
||||
}
|
||||
|
||||
//! Returns the plane of this triangle.
|
||||
|
|
Loading…
Reference in New Issue