Horde3D

Next-Generation Graphics Engine
It is currently 18.04.2024, 07:51

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 03.06.2009, 17:41 
Offline

Joined: 20.01.2008, 07:16
Posts: 15
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.


Top
 Profile  
Reply with quote  
PostPosted: 03.06.2009, 18:58 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
This sounds like an issue that has been solved here.


Top
 Profile  
Reply with quote  
PostPosted: 03.06.2009, 21:55 
Offline

Joined: 20.01.2008, 07:16
Posts: 15
Thanks, sorry, didn't find the post with the search.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group