mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 07:58:16 +02:00
graw: add frag-face shader
This commit is contained in:
parent
5b4c43d985
commit
7ef3d171a0
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
FRAG
|
||||
|
||||
DCL IN[0], COLOR, LINEAR
|
||||
DCL IN[1], FACE, CONSTANT
|
||||
DCL OUT[0], COLOR
|
||||
DCL TEMP[0]
|
||||
IMM FLT32 { 0.5, 1.0, 0.0, 0.0 }
|
||||
|
||||
MUL TEMP[0], IN[1].xxxx, IMM[0].xxxx
|
||||
ADD TEMP[0], TEMP[0], IMM[0].yyyy
|
||||
|
||||
MOV OUT[0], TEMP[0]
|
||||
|
||||
END
|
||||
Loading…
Add table
Reference in a new issue