2024-08-24 13:24:44 +00:00
|
|
|
#include "model_fs.glsl"
|
2024-08-24 13:29:05 +00:00
|
|
|
#include "lightmap.glsl"
|
2024-08-24 16:03:23 +00:00
|
|
|
#include "surface.glsl"
|
2024-08-25 00:58:34 +00:00
|
|
|
#include "fog.glsl"
|
2024-03-26 16:15:02 +00:00
|
|
|
|
|
|
|
void main() {
|
2024-08-24 17:25:29 +00:00
|
|
|
if (do_lightmap())
|
|
|
|
return;
|
2024-08-24 16:03:23 +00:00
|
|
|
surface_t surf = surface();
|
2024-09-02 17:48:15 +00:00
|
|
|
|
2024-08-24 16:03:23 +00:00
|
|
|
fragcolor = surf.fragcolor;
|
2024-08-25 00:58:34 +00:00
|
|
|
|
|
|
|
fragcolor.rgb = do_fog(fragcolor.rgb);
|
2024-03-26 16:15:02 +00:00
|
|
|
}
|