From 5bed614bd04e993b9d64d98e85b08163853050f9 Mon Sep 17 00:00:00 2001 From: James Canete Date: Mon, 4 Apr 2011 13:09:59 +0000 Subject: [PATCH] Fix diffuse lighting on models. --- reaction/code/renderer/tr_shader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reaction/code/renderer/tr_shader.c b/reaction/code/renderer/tr_shader.c index 742052cb..6af592c4 100644 --- a/reaction/code/renderer/tr_shader.c +++ b/reaction/code/renderer/tr_shader.c @@ -1838,6 +1838,10 @@ static void ComputeVertexAttribs(void) case CGEN_ONE_MINUS_VERTEX: shader.vertexAttribs |= ATTR_COLOR; break; + + case CGEN_LIGHTING_DIFFUSE: + shader.vertexAttribs |= ATTR_NORMAL; + break; default: break;