From 8cdaf74711f2564637393a80ac27ffa683d02d42 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 30 Sep 2017 18:31:04 -1000 Subject: [PATCH] Make sure HLSL shadow light loop starts at 1 --- Runtime/Graphics/Shaders/CModelShadersHLSL.cpp | 2 +- amuse | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Graphics/Shaders/CModelShadersHLSL.cpp b/Runtime/Graphics/Shaders/CModelShadersHLSL.cpp index 08e4d905e..85accb8f2 100644 --- a/Runtime/Graphics/Shaders/CModelShadersHLSL.cpp +++ b/Runtime/Graphics/Shaders/CModelShadersHLSL.cpp @@ -94,7 +94,7 @@ static const char* LightingShadowHLSL = " ret += lights[i].color * saturate(angAtt) * att * saturate(dot(normalize(-delta), mvNormIn.xyz)) *\n" " extTex0.Sample(clampSamp, vtf.extTcgs[0]).r;\n" " \n" -" for (int i=0 ; i<" _XSTR(URDE_MAX_LIGHTS) " ; ++i)\n" +" for (int i=1 ; i<" _XSTR(URDE_MAX_LIGHTS) " ; ++i)\n" " {\n" " float3 delta = mvPosIn.xyz - lights[i].pos.xyz;\n" " float dist = length(delta);\n" diff --git a/amuse b/amuse index 4b2b86f42..fdf07d6c3 160000 --- a/amuse +++ b/amuse @@ -1 +1 @@ -Subproject commit 4b2b86f4204c22de1bca7b005d672528a5341ba8 +Subproject commit fdf07d6c332d6d5125c4e32bddec839fa7fa3c05