repo.or.cz
/
0ad.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move some engine required files to the mod mod.
[0ad.git]
/
binaries
/
data
/
mods
/
mod
/
shaders
/
arb
/
solid_tex.fp
blob
1620f86f394cba8bcaab0b60e068a9e7b9110031
1
!!
ARBfp1.0
2
#ifdef REQUIRE_ALPHA_GEQUAL
3
TEMP tex
;
4
TEMP temp
;
5
TEX tex
,
fragment.texcoord
[
0
],
texture
[
0
],
2
D
;
6
SUB temp.x
,
tex.a
,
REQUIRE_ALPHA_GEQUAL
;
7
KIL temp.x
; //
discard
if
<
0.0
8
MOV result.color
,
tex
;
9
#
else
10
TEX result.color
,
fragment.texcoord
[
0
],
texture
[
0
],
2
D
;
11
#endif
12
END