Browse Source

Fix updating of light position input in Cg

rdb 10 years ago
parent
commit
cb41ff2791
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panda/src/gobj/shader.cxx

+ 4 - 1
panda/src/gobj/shader.cxx

@@ -430,7 +430,10 @@ cp_dependency(ShaderMatInput inp) {
       (inp == SMO_clip_x_to_view) ||
       (inp == SMO_view_to_clip_x) ||
       (inp == SMO_apiclip_x_to_view) ||
-      (inp == SMO_view_to_apiclip_x)) {
+      (inp == SMO_view_to_apiclip_x) ||
+      (inp == SMO_dlight_x) ||
+      (inp == SMO_plight_x) ||
+      (inp == SMO_slight_x)) {
     dep |= SSD_transform;
   }
   if ((inp == SMO_texpad_x) ||