Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/shaders/arb/terrain_common.fp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | #if USE_SHADOW && !DISABLE_RECEIVE_SHADOWS | ||||
MUL color.rgb, color, temp; | MUL color.rgb, color, temp; | ||||
#else | #else | ||||
MAD temp.rgb, fragment.color, 2.0, ambient; | MAD temp.rgb, fragment.color, 2.0, ambient; | ||||
MUL color.rgb, color, temp; | MUL color.rgb, color, temp; | ||||
#endif | #endif | ||||
// Multiply everything by the LOS texture | // Multiply everything by the LOS texture | ||||
TEX tex.r, fragment.texcoord[3], texture[3], 2D; | TEX tex.r, fragment.texcoord[3], texture[3], 2D; | ||||
SUB tex.r, tex.r, 0.03; | |||||
MUL tex.r, tex.r, 0.97; | |||||
MUL color.rgb, color, tex.r; | MUL color.rgb, color, tex.r; | ||||
#if DECAL | #if DECAL | ||||
MUL result.color.rgb, color, shadingColor; | MUL result.color.rgb, color, shadingColor; | ||||
#else | #else | ||||
MOV result.color.rgb, color; | MOV result.color.rgb, color; | ||||
#endif | #endif | ||||
END | END |
Wildfire Games · Phabricator