mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
unused var cleanups
This commit is contained in:
parent
0d6e4e2bed
commit
abdc8b6d59
1 changed files with 1 additions and 38 deletions
|
|
@ -2270,45 +2270,15 @@ void RTLightingFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
||||||
}
|
}
|
||||||
|
|
||||||
Var *smoothness = (Var*)LangElement::find("smoothness");
|
Var *smoothness = (Var*)LangElement::find("smoothness");
|
||||||
/*if (!fd.features[MFT_SpecularMap])
|
|
||||||
{
|
|
||||||
if (!smoothness)
|
|
||||||
{
|
|
||||||
smoothness = new Var("smoothness", "float");
|
|
||||||
smoothness->uniform = true;
|
|
||||||
smoothness->constSortPos = cspPotentialPrimitive;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
Var *metalness = (Var*)LangElement::find("metalness");
|
Var *metalness = (Var*)LangElement::find("metalness");
|
||||||
/*if (!fd.features[MFT_SpecularMap])
|
|
||||||
{
|
|
||||||
if (!metalness)
|
|
||||||
{
|
|
||||||
metalness = new Var("metalness", "float");
|
|
||||||
metalness->uniform = true;
|
|
||||||
metalness->constSortPos = cspPotentialPrimitive;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
Var *albedo = (Var*)LangElement::find(getOutputTargetVarName(ShaderFeature::DefaultTarget));
|
Var *albedo = (Var*)LangElement::find(getOutputTargetVarName(ShaderFeature::DefaultTarget));
|
||||||
|
|
||||||
Var *ambient = new Var( "ambient", "float4" );
|
Var *ambient = new Var( "ambient", "float4" );
|
||||||
ambient->uniform = true;
|
ambient->uniform = true;
|
||||||
ambient->constSortPos = cspPass;
|
ambient->constSortPos = cspPass;
|
||||||
|
|
||||||
// Calculate the diffuse shading and specular powers.
|
|
||||||
/*meta->addStatement( new GenOp( " compute4Lights( @, @, @, @,\r\n"
|
|
||||||
" @, @, @, @, @, @, @, @, @,\r\n"
|
|
||||||
" @, @ );\r\n",
|
|
||||||
wsView, wsPosition, wsNormal, lightMask,
|
|
||||||
inLightPos, inLightConfigData, inLightColor, inLightSpotDir, inLightSpotAngle, lightSpotFalloff, smoothness, metalness, albedo,
|
|
||||||
rtShading, specular ) );
|
|
||||||
|
|
||||||
// Apply the lighting to the diffuse color.
|
|
||||||
LangElement *lighting = new GenOp( "float4( @.rgb + @.rgb, 1 )", rtShading, ambient );
|
|
||||||
meta->addStatement( new GenOp( " @;\r\n", assignColor( lighting, Material::Mul ) ) );*/
|
|
||||||
|
|
||||||
Var* lighting = new Var("lighting", "float4");
|
Var* lighting = new Var("lighting", "float4");
|
||||||
meta->addStatement(new GenOp(" @ = compute4Lights( @, @, @, @,\r\n"
|
meta->addStatement(new GenOp(" @ = compute4Lights( @, @, @, @,\r\n"
|
||||||
" @, @, @);\r\n",
|
" @, @, @);\r\n",
|
||||||
|
|
@ -3140,10 +3110,6 @@ void ReflectionProbeFeatHLSL::processPix(Vector<ShaderComponent*> &componentList
|
||||||
Con::errorf("ShaderGen::ReflectionProbeFeatHLSL() - failed to generate surface!");
|
Con::errorf("ShaderGen::ReflectionProbeFeatHLSL() - failed to generate surface!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Var *inTex = getInTexCoord("texCoord", "float2", componentList);
|
|
||||||
if (!inTex)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Var *diffuseColor = (Var*)LangElement::find(getOutputTargetVarName(ShaderFeature::DefaultTarget));
|
Var *diffuseColor = (Var*)LangElement::find(getOutputTargetVarName(ShaderFeature::DefaultTarget));
|
||||||
|
|
||||||
|
|
@ -3152,9 +3118,6 @@ void ReflectionProbeFeatHLSL::processPix(Vector<ShaderComponent*> &componentList
|
||||||
Var* smoothness = (Var*)LangElement::find("smoothness");
|
Var* smoothness = (Var*)LangElement::find("smoothness");
|
||||||
|
|
||||||
Var* wsEyePos = (Var*)LangElement::find("eyePosWorld");
|
Var* wsEyePos = (Var*)LangElement::find("eyePosWorld");
|
||||||
Var* worldToTangent = getInWorldToTangent(componentList);
|
|
||||||
|
|
||||||
Var* wsNormal = (Var*)LangElement::find("wsNormal");
|
|
||||||
|
|
||||||
//Reflection vec
|
//Reflection vec
|
||||||
String computeForwardProbes = String::String(" @.rgb = computeForwardProbes(@,@,@,@,@,@,@,@,@,\r\n\t\t");
|
String computeForwardProbes = String::String(" @.rgb = computeForwardProbes(@,@,@,@,@,@,@,@,@,\r\n\t\t");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue