mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixed defines for shadergen. Defines were "defining" structure properties out for IN structures.
example:
// struct VertexData
// {
// vec3 position;
// vec3 normal;
// vec3 T;
// vec3 B;
// vec2 texCoord;
// vec2 texCoord2;
// } IN;
//
// varying vec4 _TEXCOORD2_;
//
// #define texCoord2 OUT_texCoord2
// #define OUT_outVpos _TEXCOORD2_
This commit is contained in:
parent
33a0579735
commit
f615802ba2
1 changed files with 1 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
|
|||
{
|
||||
dSprintf((char*)output, sizeof(output), "#define %s_%s _%s_\r\n", connectionDir, var->name, var->connectName);
|
||||
stream.write( dStrlen((char*)output), output );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( deprecatedDefines.contains((char*)var->name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue