Jump to content

Ortho deferred LightOmni different from the regular shading.


photo

Recommended Posts

The result of an omni light deferred lighting with orthographic projection is different from the regular shading. To feel the result it is needed to set huge values to the projection scale

double os = 10000.0 / pow(2.0, zoom);
player->setProjection(ortho(-os,os,-os,os,1.0,10000.0));

To see the different, you need to switch on/off "Force deferred lighting" for the omni light.

added:

light onmi must be very far from the object

Link to comment
×
×
  • Create New...