Make sure HLSL shadow light loop starts at 1

This commit is contained in:
Jack Andersen 2017-09-30 18:31:04 -10:00
parent 30ae347420
commit 8cdaf74711
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ static const char* LightingShadowHLSL =
" ret += lights[i].color * saturate(angAtt) * att * saturate(dot(normalize(-delta), mvNormIn.xyz)) *\n" " ret += lights[i].color * saturate(angAtt) * att * saturate(dot(normalize(-delta), mvNormIn.xyz)) *\n"
" extTex0.Sample(clampSamp, vtf.extTcgs[0]).r;\n" " extTex0.Sample(clampSamp, vtf.extTcgs[0]).r;\n"
" \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" " {\n"
" float3 delta = mvPosIn.xyz - lights[i].pos.xyz;\n" " float3 delta = mvPosIn.xyz - lights[i].pos.xyz;\n"
" float dist = length(delta);\n" " float dist = length(delta);\n"

2
amuse

@ -1 +1 @@
Subproject commit 4b2b86f4204c22de1bca7b005d672528a5341ba8 Subproject commit fdf07d6c332d6d5125c4e32bddec839fa7fa3c05