View Issue Details

IDProjectCategoryView StatusLast Update
0005880The Dark ModCodingpublic13.01.2022 15:30
Reporterstgatilov Assigned Tostgatilov  
Status assignedResolutionopen 
Product VersionTDM 2.10 
Target VersionTDM 2.11 
Summary0005880: Shadow maps backend should use shadow surfaces
DescriptionRight now:
  shadow maps backend renders all light surfaces into shadow maps.
  stencil backend renders shadow surfaces into shadow maps.
The way stencil does it is much better, because frontend can decide what should cast shadows and should not.
The way shadow maps do that, either backend has to decide when to cast shadows and when not (it does not have much information for that), or all surfaces must be shadow-casting.

Of course, the shadow surfaces for stencil lights contains geometry of "shadow volume", which totally different from the geometry of the object.
For shadow maps, these shadow surfaces should usually contain the same geometry as in the light surfaces.
Of course, one must ensure that this geometry is not duplicated in vertex cache, i.e. the same data should be reused.
However, we should still create shadow geometry struct, pass it, and use it properly in backend.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
13.01.2022 15:30 stgatilov New Issue
13.01.2022 15:30 stgatilov Status new => assigned
13.01.2022 15:30 stgatilov Assigned To => stgatilov