[Mesa-dev] [PATCH] r600g: implement two-sided lighting

Andre Maasikas amaasikas at gmail.com
Thu Jan 5 08:10:29 PST 2012


On Thu, Jan 5, 2012 at 4:58 PM, Marek Olšák <maraeo at gmail.com> wrote:
> On Thu, Jan 5, 2012 at 9:13 AM, Vadim Girlin <vadimgirlin at gmail.com> wrote:
>> Rendering in two-sided mode is performed in separate passes for front and
>> back faces, corresponding colors are selected by semantic ids.
>
> Are you sure that r600 cannot do two-sided color selection in
> hardware? I find it really surprising.
>
Not fully automatically afaik, but i guess one can load facing bit
(FRONT_FACE_ENA?)
into PS and from there on decide which color to use. This would however require
shader rewrite/modification

Andre


More information about the mesa-dev mailing list