mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a: Fixup qstring to mstring
This commit is contained in:
committed by
mborgerson
parent
e2e3572301
commit
74f724715d
@@ -575,7 +575,7 @@ GLSL_DEFINE(materialEmissionColor, GLSL_LTCTXA(NV_IGRAPH_XF_LTCTXA_CM_COL) ".xyz
|
||||
* In the example: 1-(-1.5) = 2.5, 2.6/2.5 = 1.04. This also scales the subsequent
|
||||
* dot product by the same amount, effectively increasing the spotlight radius.
|
||||
*/
|
||||
qstring_append_fmt(body,
|
||||
mstring_append_fmt(body,
|
||||
" vec3 dir = lightSpotDirection(%d).xyz / (1.0 - lightSpotDirection(%d).w);\n"
|
||||
" float rho = dot(dir, VP);\n"
|
||||
" float theta = lightSpotFalloff(%d).x;\n"
|
||||
|
||||
Reference in New Issue
Block a user