Browse Source

Added vspos and vstrans

Josh Yelon 20 years ago
parent
commit
9456925099
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/glstuff/glShaderContext_src.cxx

+ 3 - 1
panda/src/glstuff/glShaderContext_src.cxx

@@ -1043,9 +1043,11 @@ compile_cg_parameter(CGparameter p)
   if ((pieces[0]=="mstrans")||
   if ((pieces[0]=="mstrans")||
       (pieces[0]=="cstrans")||
       (pieces[0]=="cstrans")||
       (pieces[0]=="wstrans")||
       (pieces[0]=="wstrans")||
+      (pieces[0]=="vstrans")||
       (pieces[0]=="mspos")||
       (pieces[0]=="mspos")||
       (pieces[0]=="cspos")||
       (pieces[0]=="cspos")||
-      (pieces[0]=="wspos")) {
+      (pieces[0]=="wspos")||
+      (pieces[0]=="vspos")) {
     if ((!errchk_cg_parameter_words(p,2)) ||
     if ((!errchk_cg_parameter_words(p,2)) ||
         (!errchk_cg_parameter_direction(p, CG_IN)) ||
         (!errchk_cg_parameter_direction(p, CG_IN)) ||
         (!errchk_cg_parameter_variance(p, CG_UNIFORM)))
         (!errchk_cg_parameter_variance(p, CG_UNIFORM)))