TheOverfloater / pathos-public

Public release of Pathos Engine
MIT License
42 stars 10 forks source link

Rendermode Extensions #9

Closed Kleadron closed 8 months ago

Kleadron commented 8 months ago

Default rendermodes now behave like GoldSrc/Half-Life, but Pathos now has new modes. Lit Color Lit Texture Lit Additive Unlit Solid Lit rendermodes use the lightmap with the texture. Unlit Solid renders a cutout texture with no lighting. Default Solid and Normal are the only rendermodes that currently allow for dynamic lighting, unlit blended rendermodes do not support detail textures.

This will change how existing maps made in Pathos render but makes it compatible with half-life style rendermode usage. All of the existing entities that use the affected rendermodes have been modified to use the appropriate version. Effects such as brush based volumetric lights will now work again. image PR is a draft since this is my first big change and it's possible there are better ways to do it. This seemed to be the simplest one. Sadly, the rendermodes do not show up correctly in J.A.C.K. If Pathos gets a dedicated map editor or support from JACK or Trenchbroom, this could be fixed.

Kleadron commented 8 months ago

Explored if a separate option/variable would work better but a lot of code would need to be updated to support a "lighting preference" instead. So I believe this is the cleanest way.