View Issue Details

IDProjectCategoryView StatusLast Update
0005828The Dark ModGraphicspublic27.12.2021 03:49
Reporterstgatilov Assigned Tostgatilov  
Status assignedResolutionopen 
Product VersionTDM 2.09 
Target VersionTDM 2.11 
Summary0005828: Try to reduce duplication among shader code.
DescriptionBack in ARB assembly days, every shader was written from scratch and hand-optimized.
This is no longer the problem today: it is perfectly OK to have large shaders and rely on branching (or compile-time dead code elimination).
Having many separate shaders today causes code duplication, making it harder to maintain.

Some idea for shader unification:
1) Ordinary interaction and ambient interaction shaders can be unified into single shader with a flag.
2) Perhaps cubic lights can be unified back into frustum-based ones, just add "spherical falloff" flag.
Additional InformationOriginally discussed here:
But surely needs more thinking and discussion...
TagsNo tags attached.


related to 0005285 assignedcabalistic Remove old backend's depth/interaction/stencil stages 


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
29.11.2021 16:45 stgatilov New Issue
29.11.2021 16:45 stgatilov Status new => assigned
29.11.2021 16:45 stgatilov Assigned To => stgatilov
27.12.2021 03:49 stgatilov Relationship added related to 0005285