wizzo
03-07-2007, 04:16 AM
Hi,
I just wanted confirmation that everything (at least as far as branching is not concerned) is inlined in a shader ?
Meaning that if I want to clear up my code with someting like :
vec3 tangent = gl_MultiTexCoord1.xyz;
vec3 binormal = gl_MultiTexCoord2.xyz;
vec3 normal = gl_MultiTexCoord3.xyz;or using several functions per shader, I shouldn't worry about preformance drop.
Thanks in advance,
wizzo
I just wanted confirmation that everything (at least as far as branching is not concerned) is inlined in a shader ?
Meaning that if I want to clear up my code with someting like :
vec3 tangent = gl_MultiTexCoord1.xyz;
vec3 binormal = gl_MultiTexCoord2.xyz;
vec3 normal = gl_MultiTexCoord3.xyz;or using several functions per shader, I shouldn't worry about preformance drop.
Thanks in advance,
wizzo