Roland Scheidegger wrote:
> Currently, fog in vertex programs doesn't work when using per-vertex
> fog, since the fog factor computation is not done in the tnl pipeline. I
> think the most elegant solution to this problem would be to just move
> the (slightly changed) fog pipeline stage to after the various vertex
> prog extensions. Is it safe to move pipeline stages around? I think it
> should be as long as a stage doesn't need the output of another one. It
> seems to work (only tested with arb_vp), but I might miss some
> pitfalls... (obviously, hw drivers using their own pipelines would need
> to change the order too).

Yes, that seems like it should be ok.  The alternative is to append the 
fog computation to the vertex program, but that's obviously more complex.

This will interact badly with the programs generated by t_vs_build.c, 
though.  At the moment I don't think any of the drivers pass those into 
the software tnl pipeline though.

Keith

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to