nv2a: Fixup qstring to mstring

This commit is contained in:
Matt Borgerson 2021-05-17 23:15:36 -07:00 committed by mborgerson
parent e2e3572301
commit 74f724715d
1 changed files with 1 additions and 1 deletions

View File

@ -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"