|
|
@ -29,21 +29,21 @@ namespace
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
enum AttribOffset
|
|
|
|
enum AttribOffset
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Position,
|
|
|
|
Position,
|
|
|
|
Weight,
|
|
|
|
Weight,
|
|
|
|
Normal,
|
|
|
|
Normal,
|
|
|
|
PrimaryColor,
|
|
|
|
PrimaryColor,
|
|
|
|
SecondaryColor,
|
|
|
|
SecondaryColor,
|
|
|
|
Fog,
|
|
|
|
Fog,
|
|
|
|
PaletteSkin,
|
|
|
|
PaletteSkin,
|
|
|
|
Empty,
|
|
|
|
Empty,
|
|
|
|
TexCoord0,
|
|
|
|
TexCoord0,
|
|
|
|
TexCoord1,
|
|
|
|
TexCoord1,
|
|
|
|
TexCoord2,
|
|
|
|
TexCoord2,
|
|
|
|
TexCoord3,
|
|
|
|
TexCoord3,
|
|
|
|
TexCoord4,
|
|
|
|
TexCoord4,
|
|
|
|
TexCoord5,
|
|
|
|
TexCoord5,
|
|
|
|
TexCoord6,
|
|
|
|
TexCoord6,
|
|
|
|
TexCoord7,
|
|
|
|
TexCoord7,
|
|
|
|
NumOffsets
|
|
|
|
NumOffsets
|
|
|
@ -201,6 +201,7 @@ namespace NL3D
|
|
|
|
switch( material->getShader() )
|
|
|
|
switch( material->getShader() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case CMaterial::Normal:
|
|
|
|
case CMaterial::Normal:
|
|
|
|
|
|
|
|
case CMaterial::UserColor:
|
|
|
|
generateNormalPS();
|
|
|
|
generateNormalPS();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|