Ejemplo n.º 1
0
	bool iLight3D::IsVisible()
	{
		if(mDiffuseColor.r <=0 && mDiffuseColor.g <=0 && mDiffuseColor.b <=0 && mDiffuseColor.a <=0)
			return false;
		if(mfFarAttenuation <= 0) return false;

		return IsRendered();
	}
Ejemplo n.º 2
0
bool cBillboard::IsVisible()
{
    if(mColor.r <= 0 && mColor.g <= 0 && mColor.b <= 0) return false;

    return IsRendered();
}