Selaa lähdekoodia

Added consts.

Brucey 5 vuotta sitten
vanhempi
commit
ede5ade0ec
1 muutettua tiedostoa jossa 36 lisäystä ja 0 poistoa
  1. 36 0
      lib.mod/common.bmx

+ 36 - 0
lib.mod/common.bmx

@@ -891,3 +891,39 @@ Const MAP_BRDF:Int = 10
 
 Const MAP_DIFFUSE:Int = MAP_ALBEDO
 Const MAP_SPECULAR:Int = MAP_METALNESS
+
+Const UNIFORM_FLOAT:Int = 0
+Const UNIFORM_VEC2:Int = 1
+Const UNIFORM_VEC3:Int = 2
+Const UNIFORM_VEC4:Int = 3
+Const UNIFORM_INT:Int = 4
+Const UNIFORM_IVEC2:Int = 5
+Const UNIFORM_IVEC3:Int = 6
+Const UNIFORM_IVEC4:Int = 7
+Const UNIFORM_SAMPLER2D:Int = 8
+
+Const LOC_VERTEX_POSITION:Int = 0
+Const LOC_VERTEX_TEXCOORD01:Int = 1
+Const LOC_VERTEX_TEXCOORD02:Int = 2
+Const LOC_VERTEX_NORMAL:Int = 3
+Const LOC_VERTEX_TANGENT:Int = 4
+Const LOC_VERTEX_COLOR:Int = 5
+Const LOC_MATRIX_MVP:Int = 6
+Const LOC_MATRIX_MODEL:Int = 7
+Const LOC_MATRIX_VIEW:Int = 8
+Const LOC_MATRIX_PROJECTION:Int = 9
+Const LOC_VECTOR_VIEW:Int = 10
+Const LOC_COLOR_DIFFUSE:Int = 11
+Const LOC_COLOR_SPECULAR:Int = 12
+Const LOC_COLOR_AMBIENT:Int = 13
+Const LOC_MAP_ALBEDO:Int = 14          ' LOC_MAP_DIFFUSE
+Const LOC_MAP_METALNESS:Int = 15       ' LOC_MAP_SPECULAR
+Const LOC_MAP_NORMAL:Int = 16
+Const LOC_MAP_ROUGHNESS:Int = 17
+Const LOC_MAP_OCCLUSION:Int = 18
+Const LOC_MAP_EMISSION:Int = 19
+Const LOC_MAP_HEIGHT:Int = 20
+Const LOC_MAP_CUBEMAP:Int = 21
+Const LOC_MAP_IRRADIANCE:Int = 22
+Const LOC_MAP_PREFILTER:Int = 23
+Const LOC_MAP_BRDF:Int = 24