Vivian Meazza schrieb:
>>
>> Are you sure the shaders you see are working? ;-)
>>
> 
> The one that I wrote - sure :-). 
> 
> Vivian
> 

Oh! Now I see it too! This was not reflection what I have seen before, I 
apologize for that - I fear the b29 ;-)

So I can replace "!gl_FrontFacing" with "n.z < 0.00001" and it looks 
like reflect.frag works also fine for me (and btw. I did another small 
change with normalizing).

------
void main (void)
{
     //if (!gl_FrontFacing) discard;

     vec3 n, halfV;
     float NdotL, NdotHV;
     vec4 color = constantColor;
     vec4 specular = vec4(0.0);
     //n = VNormal;
     n = normalize(VNormal);
     if (n.z < 0.00001)
         n = -n;
-------

I am on the way to see all the nice work introduced with this new shaders!

Thanks -Y

------------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to