mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Cleanup.
This commit is contained in:
parent
d7b69b1ce9
commit
fd764ec261
1 changed files with 3 additions and 3 deletions
|
@ -1488,16 +1488,16 @@ void shadowVolumeCreate(ShadowVolume& _shadowVolume
|
|||
const float* v1 = edge.m_v1;
|
||||
|
||||
int16_t k = 0;
|
||||
float s;
|
||||
for (uint8_t ii = 0; ii < edge.m_faceIndex; ++ii)
|
||||
{
|
||||
const Edge::Plane& face = edge.m_faces[ii];
|
||||
s = fsign(vec3Dot(face.m_plane, _light) + face.m_plane[3]);
|
||||
|
||||
int16_t s = (int16_t)fsign(vec3Dot(face.m_plane, _light) + face.m_plane[3]);
|
||||
if (face.m_reverseVertexOrder)
|
||||
{
|
||||
s = -s;
|
||||
}
|
||||
k += int16_t(s);
|
||||
k += s;
|
||||
}
|
||||
|
||||
if (k == 0)
|
||||
|
|
Loading…
Reference in a new issue