Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/shaders/arb/minimap.fp
Show All 28 Lines | #if MINIMAP_LOS | ||||
MOV result.color.a, tex.a; | MOV result.color.a, tex.a; | ||||
#endif | #endif | ||||
#if MINIMAP_POINT | #if MINIMAP_POINT | ||||
MOV result.color, fragment.color; | MOV result.color, fragment.color; | ||||
MOV result.color.a, 1.0; | MOV result.color.a, 1.0; | ||||
#endif | #endif | ||||
#if MINIMAP_FLARE | |||||
PARAM color = program.local[1]; | |||||
vladislavbelov: I suppose it's not guaranteed that you have `local[1]` here. | |||||
Done Inline ActionsAt line 46 it's used as well. Imarok: At line 46 it's used as well.
I do not fully understand this code, but I looked at how it's… | |||||
Done Inline ActionsTake a look at arb/minimap.xml, local[1] at 46 is defined only for MINIMAP_LINE. vladislavbelov: Take a look at `arb/minimap.xml`, `local[1]` at 46 is defined only for `MINIMAP_LINE`. | |||||
TEMP texColor; | |||||
TEX texColor, fragment.texcoord[0], texture[0], 2D; | |||||
#if MINIMAP_MASK | |||||
MUL texColor.a, texColor.a, mask.a; | |||||
#endif | |||||
MUL texColor, texColor, color; | |||||
MOV result.color, texColor; | |||||
#endif | |||||
#if MINIMAP_LINE | #if MINIMAP_LINE | ||||
PARAM color = program.local[1]; | PARAM color = program.local[1]; | ||||
MOV result.color, color; | MOV result.color, color; | ||||
#endif | #endif | ||||
END | END |
Wildfire Games · Phabricator
I suppose it's not guaranteed that you have local[1] here.