CEntity done; C(Vu)Vector fixes and cleanup
This commit is contained in:
@@ -913,9 +913,9 @@ CEntity::ProcessLightsForEntity(void)
|
||||
effect->light.shadowSize, 0.0f,
|
||||
0.0f, -effect->light.shadowSize,
|
||||
128,
|
||||
effect->col.r*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
|
||||
effect->col.g*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
|
||||
effect->col.b*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
|
||||
effect->col.r,
|
||||
effect->col.g,
|
||||
effect->col.b,
|
||||
15.0f, 1.0f, 40.0f, false, 0.0f);
|
||||
}else if(lightFlickering){
|
||||
CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE,
|
||||
|
||||
@@ -513,8 +513,8 @@ bool CEntity::IsEntityOccluded(void) {
|
||||
}
|
||||
|
||||
if (COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) {
|
||||
CVector min = m_matrix * CModelInfo::GetModelInfo(GetModelIndex())->GetColModel()->boundingBox.min;
|
||||
CVector max = m_matrix * CModelInfo::GetModelInfo(GetModelIndex())->GetColModel()->boundingBox.max;
|
||||
CVector min = m_matrix * CModelInfo::GetColModel(m_modelIndex)->boundingBox.min;
|
||||
CVector max = m_matrix * CModelInfo::GetColModel(m_modelIndex)->boundingBox.max;
|
||||
|
||||
if (CalcScreenCoors(min, &coors) && !COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) continue;
|
||||
if (CalcScreenCoors(CVector(max.x, max.y, min.z), &coors) && !COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) continue;
|
||||
|
||||
@@ -1406,7 +1406,7 @@ CShadows::CastShadowSectorList(CPtrList &PtrList, float fStartX, float fStartY,
|
||||
{
|
||||
pEntity->m_scanCode = CWorld::GetCurrentScanCode();
|
||||
|
||||
if ( pEntity->bUsesCollision && !pEntity->m_flagE2 )
|
||||
if ( pEntity->bUsesCollision && !pEntity->bDontCastShadowsOn)
|
||||
{
|
||||
if ( IsAreaVisible(pEntity->m_area) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user