Ejemplo n.º 1
0
void lcLight::DrawInterface(lcContext* Context, const lcMatrix44& ViewMatrix) const
{
	if (IsPointLight())
		DrawPointLight(Context, ViewMatrix);
	else
		DrawSpotLight(Context, ViewMatrix);
}
Ejemplo n.º 2
0
void DeferredRenderer::DrawLight(const Light &light) {
  switch(light.type) {
  case kLightDirection:
    DrawDirectionalLight(light);
    break;
  case kLightPoint:
    DrawPointLight(light);
    break;
  case kLightSpotLight:
    DrawSpotLight(light);
    break;
  default:
    SR_ASSERT(!"not valid");
  }
}