From ae644d60ef4ca62eb6c9035b7997708b7463a693 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 26 Jan 2017 17:01:10 +0000 Subject: [PATCH] r_drawflat with d3d9. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5051 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/d3d/d3d_backend.c | 19 ++++++++++++++++++- engine/gl/r_bishaders.h | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/engine/d3d/d3d_backend.c b/engine/d3d/d3d_backend.c index 1830a8bd9..e9b0b15a5 100644 --- a/engine/d3d/d3d_backend.c +++ b/engine/d3d/d3d_backend.c @@ -1867,9 +1867,26 @@ static void BE_ApplyUniforms(program_t *prog, int permu) IDirect3DDevice9_SetPixelShaderConstantF(pD3DDev9, h, param4, 3); break; + case SP_E_LMSCALE: + Vector4Set(param4, 1, 1, 1, 1); + if (shaderstate.curentity->model && (shaderstate.curentity->model->engineflags & MDLF_NEEDOVERBRIGHT)) + { + extern cvar_t gl_overbright; + const float identitylighting = 1; + float sc = (1<