home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 January
/
Gamestar_80_2006-01_dvd.iso
/
Utility
/
5-11_xp-2k_dd_ccc_wdm_enu_27345.exe
/
Data1.cab
/
_301C3507AC50475D860A9FFC764FBE86
< prev
next >
Wrap
Text File
|
2004-01-22
|
686b
|
20 lines
!!ARBfp1.0
ATTRIB extinction = fragment.color.primary;
ATTRIB inscattering = fragment.color.secondary;
PARAM USEFUL = {0.0, 0.5, 1.0, 2.0};
ATTRIB litcolor = fragment.texcoord[2];
TEMP terrain, clouds;
TEX terrain, fragment.texcoord[0], texture[0], 2D;
TEX clouds, fragment.texcoord[1], texture[1], 2D;
MUL terrain.rgb, terrain, litcolor; # Vertex color * terrain texture
MAD clouds, clouds, -USEFUL.y, USEFUL.z; # clouds = 1-0.5*clouds
MUL terrain, terrain, clouds;
MUL terrain, terrain, extinction; # Apply extinction
ADD result.color, terrain, inscattering; # Final color with added inscattering
END