Hi Syd,

On Sun, Jun 10, 2012 at 12:25 PM, syd adams wrote:
> These are the errors I get with Rembrandt enabled :
>
>
> FRAGMENT glCompileShader
> "/home/syd/FG/fgdata/Shaders/ubershader-gbuffer.frag" FAILED
> FRAGMENT Shader "/home/syd/FG/fgdata/Shaders/ubershader-gbuffer.frag" infolog:
> Fragment shader failed to compile with the following errors:
> ERROR: 0:79: error(#162) Wrong operand types no operation '+' exists
> that takes a left-hand operand of type '3-component vector of float'
> and a right operand of type 'uniform 4-component vector of float' (or
> there is no acceptable conversion)
> ERROR: error(#273) 1 compilation errors.  No code generated
>
> glLinkProgram "" FAILED
> Program "" infolog:
> Fragment shader(s) were not successfully compiled before
> glLinkProgram() was called.  Link failed.

I think this error is caused by a bug in one of the shaders itself.  I
think gl_FrontMaterial.emission
is a vec4, and your shader compiler is complaining about a type mismatch.

Can you change line 79 of
/home/syd/FG/fgdata/Shaders/ubershader-gbuffer.frag from

float emission = dot( gl_FrontLightModelProduct.sceneColor.rgb +
gl_FrontMaterial.emission,

to

float emission = dot( gl_FrontLightModelProduct.sceneColor.rgb +
gl_FrontMaterial.emission.rgb,

and see if the error goes away?

(You may see subsequent errors from other shaders that also make the
same statement)

-Stuart

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to