Site menu


[DS]: Half-Life Server
[DS]: Half-Life Server


[DS]: CS:S GunGame v34 Server
[DS]: CS:S GunGame v34 Server


[DS]: CS:S v34 Server
[DS]: CS:S v34 Server


Search

add_newAdd submission
Latest submissions

<JAM>
m1-palinka


HL-HEV
hl-hev


Horizonmapping Techdemo

Добавил: The DSystem
2009-09-03 22:09:00
8 views
longer or shorter.This is when horizonmapping becomes handy which allows us to draw a correct shadow which gets longer and shorter. Although horizonmapping is normally done with additional textures , I decided that a heightmap (stored in the Normalmaps Bluechannel) should be enough to generate these "shadows".The Shader simply traces a ray from the current pixelposition back to the light and checks if hit intersects another pixel, if it does so , the currentpixel must be in the shadowvolume.
We all know Bumpmapping which calculates the pixelcolour depending on the angle between the pixels normal and the lightdirection but if we take a closer look we notice that these "shadows" wont get
File Name:
horizon.zip
File Size:
225.45 KB
Download Last 2 Week:
5
Downloads All Time:
82
Share:
Keywords: