Horde3D
http://horde3d.org/forums/

Bug with using the symbols "[]" within an FX section
http://horde3d.org/forums/viewtopic.php?f=3&t=768
Page 1 of 1

Author:  Dark_Kilauea [ 03.06.2009, 17:41 ]
Post subject:  Bug with using the symbols "[]" within an FX section

Simply put, using the symbols '[' or ']' anywhere within an FX code section within a .shader file will cause the shader code to be truncated at that point. I think this bug has something to do with the new #define support, but I wasn't able to verify that by looking at the shader resource code.

Example:
Code:
void main( void )
{
    vec3 myVar = someMatrix[idx];
    gl_Position = myVar;

}

will cause the file to become:
Code:
void main( void )
{
    vec3 myVar = someMatrix


causing an unexpected end error by the GLSL compiler.

Note: This problem does not occur if you include a .glsl file and use '[' and ']' in there. This only occurs inside an FX code block.

Author:  marciano [ 03.06.2009, 18:58 ]
Post subject:  Re: Bug with using the symbols "[]" within an FX section

This sounds like an issue that has been solved here.

Author:  Dark_Kilauea [ 03.06.2009, 21:55 ]
Post subject:  Re: Bug with using the symbols "[]" within an FX section

Thanks, sorry, didn't find the post with the search.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/