mirror of https://github.com/AxioDL/metaforce.git
Make sure HLSL shadow light loop starts at 1
This commit is contained in:
parent
30ae347420
commit
8cdaf74711
|
@ -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"
|
||||
|
|
2
amuse
2
amuse
|
@ -1 +1 @@
|
|||
Subproject commit 4b2b86f4204c22de1bca7b005d672528a5341ba8
|
||||
Subproject commit fdf07d6c332d6d5125c4e32bddec839fa7fa3c05
|
Loading…
Reference in New Issue