|
|
@ -91,7 +91,7 @@ namespace NL3D
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < IDRV_MAT_MAXTEXTURES; i++)
|
|
|
|
for (int i = 0; i < IDRV_MAT_MAXTEXTURES; i++)
|
|
|
|
useTextureStage[ i ] = false;
|
|
|
|
useTextureStage[ i ] = false;
|
|
|
|
useFirstTextureCoordSet = false;
|
|
|
|
//useFirstTextureCoordSet = false;
|
|
|
|
noTextures = true;
|
|
|
|
noTextures = true;
|
|
|
|
|
|
|
|
|
|
|
|
features = None;
|
|
|
|
features = None;
|
|
|
@ -140,8 +140,8 @@ namespace NL3D
|
|
|
|
|
|
|
|
|
|
|
|
if (shaderType == Normal)
|
|
|
|
if (shaderType == Normal)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (useFirstTextureCoordSet != o.useFirstTextureCoordSet)
|
|
|
|
//if (useFirstTextureCoordSet != o.useFirstTextureCoordSet)
|
|
|
|
return false;
|
|
|
|
// return false;
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < IDRV_MAT_MAXTEXTURES; i++)
|
|
|
|
for (int i = 0; i < IDRV_MAT_MAXTEXTURES; i++)
|
|
|
|
if (texEnvMode[ i ] != o.texEnvMode[ i ])
|
|
|
|
if (texEnvMode[ i ] != o.texEnvMode[ i ])
|
|
|
@ -164,8 +164,8 @@ namespace NL3D
|
|
|
|
|
|
|
|
|
|
|
|
void setTexEnvMode(uint32 index, uint32 mode) { texEnvMode[ index ] = mode; }
|
|
|
|
void setTexEnvMode(uint32 index, uint32 mode) { texEnvMode[ index ] = mode; }
|
|
|
|
|
|
|
|
|
|
|
|
void setUseFirstTexCoords(bool b) { useFirstTextureCoordSet = b; }
|
|
|
|
//void setUseFirstTexCoords(bool b) { useFirstTextureCoordSet = b; }
|
|
|
|
bool getUseFirstTexCoords() const{ return useFirstTextureCoordSet; }
|
|
|
|
//bool getUseFirstTexCoords() const{ return useFirstTextureCoordSet; }
|
|
|
|
|
|
|
|
|
|
|
|
void setUseTexStage(uint8 stage, bool b) { useTextureStage[ stage ] = b; }
|
|
|
|
void setUseTexStage(uint8 stage, bool b) { useTextureStage[ stage ] = b; }
|
|
|
|
bool getUseTexStage(uint8 stage) const{ return useTextureStage[ stage ]; }
|
|
|
|
bool getUseTexStage(uint8 stage) const{ return useTextureStage[ stage ]; }
|
|
|
@ -257,7 +257,7 @@ namespace NL3D
|
|
|
|
uint32 features;
|
|
|
|
uint32 features;
|
|
|
|
uint32 texEnvMode[ IDRV_MAT_MAXTEXTURES ];
|
|
|
|
uint32 texEnvMode[ IDRV_MAT_MAXTEXTURES ];
|
|
|
|
bool useTextureStage[ IDRV_MAT_MAXTEXTURES ];
|
|
|
|
bool useTextureStage[ IDRV_MAT_MAXTEXTURES ];
|
|
|
|
bool useFirstTextureCoordSet;
|
|
|
|
//bool useFirstTextureCoordSet;
|
|
|
|
bool noTextures;
|
|
|
|
bool noTextures;
|
|
|
|
uint32 vbFlags;
|
|
|
|
uint32 vbFlags;
|
|
|
|
uint32 shaderType;
|
|
|
|
uint32 shaderType;
|
|
|
|