pingjiang / glsl4idea

Automatically exported from code.google.com/p/glsl4idea
0 stars 0 forks source link

Syntax error reported when using vec4 with function return values #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example:

return vec4(
  min( ( sunLightColor[0] * weight ) + ( sunSetColor0[0] * ( 1.0 - weight ) ), 1.0 ),
  min( ( sunLightColor[1] * weight ) + ( sunSetColor0[1] * ( 1.0 - weight ) ), 1.0 ),
  min( ( sunLightColor[2] * weight ) + ( sunSetColor0[2] * ( 1.0 - weight ) ), 1.0 ),
  1.0
);

Would expect the error checker to be able to interpret function return types, 
not just vars.

Version 118.1, win 7

Original issue reported on code.google.com by taylorru...@gmail.com on 2 May 2014 at 12:47