|
@@ -298,7 +298,7 @@ TerrainDetailMapFeatHLSL::TerrainDetailMapFeatHLSL()
|
|
void TerrainDetailMapFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
void TerrainDetailMapFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
const MaterialFeatureData &fd )
|
|
const MaterialFeatureData &fd )
|
|
{
|
|
{
|
|
- const U32 detailIndex = getProcessIndex();
|
|
|
|
|
|
+ const S32 detailIndex = getProcessIndex();
|
|
|
|
|
|
// Grab incoming texture coords... the base map feature
|
|
// Grab incoming texture coords... the base map feature
|
|
// made sure this was created.
|
|
// made sure this was created.
|
|
@@ -383,7 +383,7 @@ void TerrainDetailMapFeatHLSL::processVert( Vector<ShaderComponent*> &component
|
|
void TerrainDetailMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|
void TerrainDetailMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|
const MaterialFeatureData &fd )
|
|
const MaterialFeatureData &fd )
|
|
{
|
|
{
|
|
- const U32 detailIndex = getProcessIndex();
|
|
|
|
|
|
+ const S32 detailIndex = getProcessIndex();
|
|
Var *inTex = getVertTexCoord( "texCoord" );
|
|
Var *inTex = getVertTexCoord( "texCoord" );
|
|
|
|
|
|
MultiLine *meta = new MultiLine;
|
|
MultiLine *meta = new MultiLine;
|
|
@@ -615,7 +615,7 @@ TerrainMacroMapFeatHLSL::TerrainMacroMapFeatHLSL()
|
|
void TerrainMacroMapFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
void TerrainMacroMapFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
const MaterialFeatureData &fd )
|
|
const MaterialFeatureData &fd )
|
|
{
|
|
{
|
|
- const U32 detailIndex = getProcessIndex();
|
|
|
|
|
|
+ const S32 detailIndex = getProcessIndex();
|
|
|
|
|
|
// Grab incoming texture coords... the base map feature
|
|
// Grab incoming texture coords... the base map feature
|
|
// made sure this was created.
|
|
// made sure this was created.
|
|
@@ -673,7 +673,7 @@ void TerrainMacroMapFeatHLSL::processVert( Vector<ShaderComponent*> &componentL
|
|
void TerrainMacroMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|
void TerrainMacroMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|
const MaterialFeatureData &fd )
|
|
const MaterialFeatureData &fd )
|
|
{
|
|
{
|
|
- const U32 detailIndex = getProcessIndex();
|
|
|
|
|
|
+ const S32 detailIndex = getProcessIndex();
|
|
Var *inTex = getVertTexCoord( "texCoord" );
|
|
Var *inTex = getVertTexCoord( "texCoord" );
|
|
|
|
|
|
MultiLine *meta = new MultiLine;
|
|
MultiLine *meta = new MultiLine;
|
|
@@ -900,7 +900,7 @@ void TerrainNormalMapFeatHLSL::processPix( Vector<ShaderComponent*> &component
|
|
meta->addStatement( new GenOp( " @ = @[2];\r\n", new DecOp( gbNormal ), viewToTangent ) );
|
|
meta->addStatement( new GenOp( " @ = @[2];\r\n", new DecOp( gbNormal ), viewToTangent ) );
|
|
}
|
|
}
|
|
|
|
|
|
- const U32 normalIndex = getProcessIndex();
|
|
|
|
|
|
+ const S32 normalIndex = getProcessIndex();
|
|
|
|
|
|
Var *detailBlend = (Var*)LangElement::find( String::ToString( "detailBlend%d", normalIndex ) );
|
|
Var *detailBlend = (Var*)LangElement::find( String::ToString( "detailBlend%d", normalIndex ) );
|
|
AssertFatal( detailBlend, "The detail blend is missing!" );
|
|
AssertFatal( detailBlend, "The detail blend is missing!" );
|