DaemonEngine / Daemon

The Dæmon game engine. With some bits of ioq3 and XreaL.
https://unvanquished.net
BSD 3-Clause "New" or "Revised" License
299 stars 61 forks source link

implement realtime sun light on tiled renderer #241

Open illwieckz opened 4 years ago

illwieckz commented 4 years ago

May be cool to have the sun from ioquake3 opengl2 renderer, or another implementation that does the job.

Note: “opengl2 renderer” means “second renderer”, not “renderer using OpenGL 2”.

illwieckz commented 4 years ago

We have that:

    // directional sun lighting ( Doom3 style )
    gl_shaderManager.load( gl_forwardLightingShader_directionalSun );

But it relies on the forward renderer, something we want to drop (#236)

@cmf028 do you think such sunlight would require the same design required by realtime shadows (#242) and would be able to leverage it? Or does it require something else?

illwieckz commented 1 year ago

from https://github.com/DaemonEngine/Daemon/issues/662#issuecomment-1199857651 :

Here is an example of how looks ATCS (not HD) map on Q3 tremulous mod on ioquake3 with classic lighting:

ioquake3 tremulous atcs forcesun

Here is an example of how looks ATCS (not HD) map on Q3 tremulous mod on ioquake3 with r_forceSun 1:

ioquake3 tremulous atcs forcesun

Also not that it does not benefit from specular/normal/relief mapping here as none of this is implemented.