mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 21:40:31 +00:00
Changes on ShaderGen for generate GLSL shaders.
This commit is contained in:
parent
c354f59b72
commit
61d3e52ad1
4 changed files with 20 additions and 18 deletions
|
|
@ -409,13 +409,13 @@ void ShaderGen::_printVertShader( Stream &stream )
|
|||
_printFeatureList(stream);
|
||||
|
||||
// print out structures
|
||||
mComponents[C_VERT_STRUCT]->print( stream );
|
||||
mComponents[C_CONNECTOR]->print( stream );
|
||||
mComponents[C_VERT_STRUCT]->print( stream, true );
|
||||
mComponents[C_CONNECTOR]->print( stream, true );
|
||||
|
||||
mPrinter->printMainComment(stream);
|
||||
|
||||
mComponents[C_VERT_MAIN]->print( stream );
|
||||
|
||||
mComponents[C_VERT_MAIN]->print( stream, true );
|
||||
mComponents[C_VERT_STRUCT]->printOnMain( stream, true );
|
||||
|
||||
// print out the function
|
||||
_printFeatures( stream );
|
||||
|
|
@ -430,12 +430,13 @@ void ShaderGen::_printPixShader( Stream &stream )
|
|||
_printDependencies(stream); // TODO: Split into vert and pix dependencies?
|
||||
_printFeatureList(stream);
|
||||
|
||||
mComponents[C_CONNECTOR]->print( stream );
|
||||
mComponents[C_CONNECTOR]->print( stream, false );
|
||||
|
||||
mPrinter->printPixelShaderOutputStruct(stream, mFeatureData);
|
||||
mPrinter->printMainComment(stream);
|
||||
|
||||
mComponents[C_PIX_MAIN]->print( stream );
|
||||
mComponents[C_PIX_MAIN]->print( stream, false );
|
||||
mComponents[C_CONNECTOR]->printOnMain( stream, false );
|
||||
|
||||
// print out the function
|
||||
_printFeatures( stream );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue