r_lightmap functionality.

This commit is contained in:
Artem Kharytoniuk 2017-05-26 14:34:34 +03:00
parent 2ed689cc30
commit a57c8382b1

View File

@ -813,6 +813,9 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input )
depth_range = Vk_Depth_Range::normal;
}
if (r_lightmap->integer && multitexture)
GL_Bind(tr.whiteImage); // replace diffuse texture with a white one thus effectively render only lightmap
vk_shade_geometry(pipeline, multitexture, depth_range);
}