Browse Source

multitexture

David Rose 20 years ago
parent
commit
7a33e8ddb1
1 changed files with 5 additions and 4 deletions
  1. 5 4
      panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx

+ 5 - 4
panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx

@@ -2242,10 +2242,11 @@ do_issue_texture() {
         // This texture matrix, applied on top of the texcoord
         // This texture matrix, applied on top of the texcoord
         // computed by D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR,
         // computed by D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR,
         // approximates the effect produced by OpenGL's GL_SPHERE_MAP.
         // approximates the effect produced by OpenGL's GL_SPHERE_MAP.
-        LMatrix4f sphere_map(0.33f, 0.0f, 0.0f, 0.0f,
-                             0.0f, 0.33f, 0.0f, 0.0f,
-                             0.0f, 0.0f, 1.0f, 0.0f,
-                             0.5f, 0.5f, 0.0f, 1.0f);
+        static const LMatrix4f sphere_map
+          (0.33f, 0.0f, 0.0f, 0.0f,
+           0.0f, 0.33f, 0.0f, 0.0f,
+           0.0f, 0.0f, 1.0f, 0.0f,
+           0.5f, 0.5f, 0.0f, 1.0f);
 
 
         if (has_tex_mat) {
         if (has_tex_mat) {
           tex_mat = sphere_map * tex_mat;
           tex_mat = sphere_map * tex_mat;