View Issue Details

IDProjectCategoryView StatusLast Update
0005828The Dark ModGraphicspublic27.12.2021 03:49
Reporterstgatilov Assigned Tostgatilov  
PrioritynormalSeverityminorReproducibilityN/A
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:
  https://forums.thedarkmod.com/index.php?/topic/21138-projected-lights-falloff/&do=findComment&comment=466904
But surely needs more thinking and discussion...
TagsNo tags attached.

Relationships

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

Activities

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