Jump to content

What is the function setZNear doing on a LightProj


photo

Recommended Posts

Posted (edited)

Ok this is not very clear to me, so what happens exactly? When an object or pixels distance to the light is smaller than the near clipping value it should not be lit?

Edited by sebastian.vesenmayer
Posted

Basically, this parameter affects how the shadow of the lit objects should look like.

near_clipping.gif

With fully deferred rendering you can't simply disable light from a specific surface of the mesh (I assume that you would trying to do with changing the ZNear parameter).

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted (edited)
11 minutes ago, silent said:

Basically, this parameter affects how the shadow of the lit objects should look like.

Ok so this is only for shadows and not illumination in your engine.There is no information in the documentation, add it please :)

 

11 minutes ago, silent said:

With fully deferred rendering you can't simply disable light from a specific surface of the mesh (I assume that you would trying to do with changing the ZNear parameter).

Well I am sure it is possible in deferred rendering if the shader is implemented to compare distance to light source with ZNear parameter for illumination :)

 

Thanks

Edited by sebastian.vesenmayer
×
×
  • Create New...