mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
Add error msg to Shadergen when GBufferConditioner?LSL::processVert don't have normals defined.
This commit is contained in:
parent
bc32da74ca
commit
1067da284f
2 changed files with 2 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ void GBufferConditionerGLSL::processVert( Vector<ShaderComponent*> &componentLis
|
|||
{
|
||||
inNormal = new Var("normal", "vec3");
|
||||
meta->addStatement(new GenOp(" @ = vec3( 0.0, 0.0, 1.0 );\r\n", new DecOp(inNormal)));
|
||||
Con::errorf("ShagerGen: Something went bad with ShaderGen. The normal should be already defined.");
|
||||
}
|
||||
AssertFatal( inNormal, "Something went bad with ShaderGen. The normal should be already defined." );
|
||||
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ void GBufferConditionerHLSL::processVert( Vector<ShaderComponent*> &componentLis
|
|||
{
|
||||
inNormal = new Var("normal", "float3");
|
||||
meta->addStatement(new GenOp(" @ = float3( 0.0, 0.0, 1.0 );\r\n", new DecOp(inNormal)));
|
||||
Con::errorf("ShagerGen: Something went bad with ShaderGen. The normal should be already defined.");
|
||||
}
|
||||
AssertFatal( inNormal, "Something went bad with ShaderGen. The normal should be already defined." );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue