DaemonEngine / Daemon

The Dæmon game engine. With some bits of ioq3 and XreaL.
https://unvanquished.net
BSD 3-Clause "New" or "Revised" License
301 stars 60 forks source link

“alphaGen lightingSpecular” shader keyword is unsupported #213

Open illwieckz opened 5 years ago

illwieckz commented 5 years ago

Many Tremulous maps use it, but Dæmon does not implement it:

Warn: alphaGen lightingSpecular keyword not supported in shader 'textures/metro/zinc_ed' 

May be good to have this shader supported or at least to have a fallback to make map porting easier.

megatog615 commented 5 years ago

Back in the day, it was intended to be used with texture maps that were made to have the surface look shiny with specular lighting. It's an alphaGen mode because the texture map made for it is intended to blend through the alpha channel. The alpha channel increases in value based on a predetermined direction(q3a had built-in map coordinates for this rather than using any lights). So, it's a bit like modern specular mapping but one thing to consider is the texture map made for alphaGen lightingSpecular is not your typical specular/gloss map and you'll have to reimplement the weird use-case introduced by blending it through the alpha channel.