mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
fixed also on DirectX
This commit is contained in:
parent
4bf5aade6e
commit
30815cb641
1 changed files with 15 additions and 1 deletions
|
|
@ -111,6 +111,20 @@ ShaderFeature::Resources PixelSpecularHLSL::getResources( const MaterialFeatureD
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SpecularMapHLSL::processVert(Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd)
|
||||||
|
{
|
||||||
|
MultiLine *meta = new MultiLine;
|
||||||
|
|
||||||
|
// Add the texture coords.
|
||||||
|
getOutTexCoord("texCoord",
|
||||||
|
"float2",
|
||||||
|
true,
|
||||||
|
fd.features[MFT_TexAnim],
|
||||||
|
meta,
|
||||||
|
componentList);
|
||||||
|
|
||||||
|
output = meta;
|
||||||
|
}
|
||||||
|
|
||||||
void SpecularMapHLSL::processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd )
|
void SpecularMapHLSL::processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd )
|
||||||
{
|
{
|
||||||
|
|
@ -150,4 +164,4 @@ void SpecularMapHLSL::setTexData( Material::StageData &stageDat,
|
||||||
passData.mSamplerNames[ texIndex ] = "specularMap";
|
passData.mSamplerNames[ texIndex ] = "specularMap";
|
||||||
passData.mTexSlot[ texIndex++ ].texObject = tex;
|
passData.mTexSlot[ texIndex++ ].texObject = tex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue