⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directionallight.h

📁 游戏编程精华02-含有几十个游戏编程例子
💻 H
字号:
/******************************************************************************

  Copyright (C) 1999, 2000 NVIDIA Corporation
  This file is provided without support, instruction, or implied warranty of any
  kind.  NVIDIA makes no guarantee of its fitness for a particular purpose and is
  not liable under any circumstances for any damages or loss whatsoever arising
  from the use or inability to use this file or items derived from it.
  
    Comments:
    
      
        
******************************************************************************/

#define CV_ZERO 0
#define CV_ONE 1
 
#define CV_WORLDVIEWPROJ_0 2
#define CV_WORLDVIEWPROJ_1 3
#define CV_WORLDVIEWPROJ_2 4
#define CV_WORLDVIEWPROJ_3 5

#define CV_WORLDVIEWIT_0 6
#define CV_WORLDVIEWIT_1 7
#define CV_WORLDVIEWIT_2 8

#define CV_LIGHT1_DIRECTION 9

#define CV_MAT_DIFFUSE 10
#define CV_MAT_AMBIENT 11
#define CV_MAT_SPECULAR 12
#define CV_MAT_POWER 13

#define CV_EYE_VECTOR 14

#define CV_WORLD_0 15
#define CV_WORLD_1 16
#define CV_WORLD_2 17
#define CV_WORLD_3 18

#define CV_HALF 19

#define CV_POSITION_LOCATION 0
#define CV_POSITION v0

#define CV_NORMAL_LOCATION 1
#define CV_NORMAL v1

#define CV_DIFFUSE_LOCATION 2
#define CV_DIFFUSE v2

#define CV_SPECULAR_LOCATION 3
#define CV_SPECULAR v3

#define CV_TEXTURE0_LOCATION 4
#define CV_TEXTURE0 v4

#define CV_TEXTURE1_LOCATION 5
#define CV_TEXTURE1 v5

#define CV_TEXTURE2_LOCATION 6
#define CV_TEXTURE2 v6

#define CV_TEXTURE3_LOCATION 7
#define CV_TEXTURE3 v7

#define CV_S_LOCATION 8
#define CV_S v8

#define CV_T_LOCATION 9
#define CV_T v9

#define CV_SxT_LOCATION 10
#define CV_SxT v10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -