mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
commit
6822a78fcf
4 changed files with 38 additions and 4 deletions
|
|
@ -111,6 +111,20 @@ ShaderFeature::Resources PixelSpecularGLSL::getResources( const MaterialFeatureD
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SpecularMapGLSL::processVert(Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd)
|
||||||
|
{
|
||||||
|
MultiLine *meta = new MultiLine;
|
||||||
|
|
||||||
|
// Add the texture coords.
|
||||||
|
getOutTexCoord("texCoord",
|
||||||
|
"vec2",
|
||||||
|
true,
|
||||||
|
fd.features[MFT_TexAnim],
|
||||||
|
meta,
|
||||||
|
componentList);
|
||||||
|
|
||||||
|
output = meta;
|
||||||
|
}
|
||||||
|
|
||||||
void SpecularMapGLSL::processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd )
|
void SpecularMapGLSL::processPix( Vector<ShaderComponent*> &componentList, const MaterialFeatureData &fd )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,9 @@ class SpecularMapGLSL : public ShaderFeatureGLSL
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
virtual void processVert( Vector<ShaderComponent*> &componentList,
|
||||||
|
const MaterialFeatureData &fd );
|
||||||
|
|
||||||
virtual void processPix( Vector<ShaderComponent*> &componentList,
|
virtual void processPix( Vector<ShaderComponent*> &componentList,
|
||||||
const MaterialFeatureData &fd );
|
const MaterialFeatureData &fd );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,9 @@ class SpecularMapHLSL : public ShaderFeatureHLSL
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
virtual void processVert( Vector<ShaderComponent*> &componentList,
|
||||||
|
const MaterialFeatureData &fd );
|
||||||
|
|
||||||
virtual void processPix( Vector<ShaderComponent*> &componentList,
|
virtual void processPix( Vector<ShaderComponent*> &componentList,
|
||||||
const MaterialFeatureData &fd );
|
const MaterialFeatureData &fd );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue