|
@@ -132,6 +132,8 @@ MaterialDef Phong Lighting {
|
|
// For hardware skinning
|
|
// For hardware skinning
|
|
Int NumberOfBones
|
|
Int NumberOfBones
|
|
Matrix4Array BoneMatrices
|
|
Matrix4Array BoneMatrices
|
|
|
|
+
|
|
|
|
+ Boolean UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
Technique {
|
|
Technique {
|
|
@@ -148,6 +150,7 @@ MaterialDef Phong Lighting {
|
|
ViewMatrix
|
|
ViewMatrix
|
|
CameraPosition
|
|
CameraPosition
|
|
WorldMatrix
|
|
WorldMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
@@ -177,6 +180,8 @@ MaterialDef Phong Lighting {
|
|
SPHERE_MAP : SphereMap
|
|
SPHERE_MAP : SphereMap
|
|
|
|
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -188,12 +193,15 @@ MaterialDef Phong Lighting {
|
|
WorldParameters {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
WorldViewMatrix
|
|
WorldViewMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
COLOR_MAP : ColorMap
|
|
COLOR_MAP : ColorMap
|
|
DISCARD_ALPHA : AlphaDiscardThreshold
|
|
DISCARD_ALPHA : AlphaDiscardThreshold
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
ForcedRenderState {
|
|
ForcedRenderState {
|
|
@@ -214,6 +222,8 @@ MaterialDef Phong Lighting {
|
|
WorldParameters {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
WorldMatrix
|
|
WorldMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
@@ -227,6 +237,7 @@ MaterialDef Phong Lighting {
|
|
PSSM : Splits
|
|
PSSM : Splits
|
|
POINTLIGHT : LightViewProjectionMatrix5
|
|
POINTLIGHT : LightViewProjectionMatrix5
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
ForcedRenderState {
|
|
ForcedRenderState {
|
|
@@ -243,6 +254,8 @@ MaterialDef Phong Lighting {
|
|
WorldParameters {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
WorldMatrix
|
|
WorldMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
@@ -256,6 +269,7 @@ MaterialDef Phong Lighting {
|
|
PSSM : Splits
|
|
PSSM : Splits
|
|
POINTLIGHT : LightViewProjectionMatrix5
|
|
POINTLIGHT : LightViewProjectionMatrix5
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
ForcedRenderState {
|
|
ForcedRenderState {
|
|
@@ -274,11 +288,14 @@ MaterialDef Phong Lighting {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
WorldViewMatrix
|
|
WorldViewMatrix
|
|
NormalMatrix
|
|
NormalMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
DIFFUSEMAP_ALPHA : DiffuseMap
|
|
DIFFUSEMAP_ALPHA : DiffuseMap
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -292,12 +309,15 @@ MaterialDef Phong Lighting {
|
|
WorldParameters {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
WorldViewMatrix
|
|
WorldViewMatrix
|
|
- NormalMatrix
|
|
|
|
|
|
+ NormalMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
DIFFUSEMAP_ALPHA : DiffuseMap
|
|
DIFFUSEMAP_ALPHA : DiffuseMap
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -339,6 +359,8 @@ MaterialDef Phong Lighting {
|
|
|
|
|
|
WorldParameters {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
WorldViewProjectionMatrix
|
|
|
|
+ ViewProjectionMatrix
|
|
|
|
+ ViewMatrix
|
|
}
|
|
}
|
|
|
|
|
|
Defines {
|
|
Defines {
|
|
@@ -347,6 +369,7 @@ MaterialDef Phong Lighting {
|
|
HAS_GLOWCOLOR : GlowColor
|
|
HAS_GLOWCOLOR : GlowColor
|
|
|
|
|
|
NUM_BONES : NumberOfBones
|
|
NUM_BONES : NumberOfBones
|
|
|
|
+ INSTANCING : UseInstancing
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|