aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_two_side.h
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: add new tgsi_two_side.c utility codeBrian Paul2015-09-011-0/+34
This could be used by any driver where the device doesn't directly support two-sided lighting. This code modifies a fragment shader to accecpt back-face colors and choose between the front/back colors depending on the triangle's front-face sign.