On 4 Apr 2012, at 15:56, Frederic Bouvier wrote:

> The shadow is rendered in the image in sunlight.frag so this is not the 
> problem but the inputs are weird, so is the lighting.
> 
> You disabled *all* shaders, right ?

Just made (and pushed) a Simgear tweak to identify the shader names :)

FRAGMENT glCompileShader 
"/Users/Shared/FGFS/data/Shaders/deferred-gbuffer.frag" FAILED
FRAGMENT Shader "/Users/Shared/FGFS/data/Shaders/deferred-gbuffer.frag" infolog:
ERROR: 0:18: Left-hand-side of assignment must not be read-only

Which apparently is:

        ecNormal = (2.0 * gl_Color.a - 1.0) * ecNormal;

Guessing that writing to a 'varying' might be the issue, I made a temporary:

       vec3 normal2 = (2.0 * gl_Color.a - 1.0) * ecNormal;
       gl_FragData[0] = vec4( (normal2.xy + vec2(1.0,1.0)) * 0.5, 0.0, 1.0 );

And now everything looks good! The intermediate buffers, the shadows, yes.

Regards,
James

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to