BredaUniversityGames / DXX-Raytracer

DXX Raytracer is a fork of the DXX Retro project for Windows. DXX Raytracer uses modern raytracing techniques to update the graphics of the beloved retro game known as Descent.
Other
216 stars 10 forks source link

Lighting tweaks #25

Closed Lehm2000 closed 3 months ago

Lehm2000 commented 3 months ago

This PR is a bit subjective. There are certain areas of the game that look way too dark IMO. This was due to the textures that are used as primary light sources in these areas are not marked as lights in the code. The main culprit being metl126. It is used as a primary light source in several places. Most notably the big room at the beginning of level 2.

Rebirth: scrn0000 Raytraced v1.1 scrn0003 Raytraced v1.1 with metl126 emissive increased (blotchy looking) scrn0004 This PR with metl126 marked as a light scrn0005

I also added additional lights for a series of lights on the metl materials: Before scrn0050 After scrn0046

Before scrn0051 After scrn0047

These lights are on a base material and required updating RT_ExtractLightsFromSide to also look for lights on base materials as well as overlay. It didn't add any noticeable increase in level load time.

I also took the opportunity to tone down a few of the other lights where the texture itself is small but the light was just as bright as the others, it just looked a bit overbright in a few areas (this one is especially subjective), willing to remove this. The other changes are more important I think.