Thread: DirectX Shaders
View Single Post
Old 23-11-2008, 04:59 PM   #2
Buzzy
Quadcore
 
Buzzy's Avatar
 
 
Join Date: Nov 2004
Location: Pittsburgh
Posts: 1,416
Thanks: 3
Thanked 29 Times in 25 Posts
Awards Showcase
Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: 'Bronze Age Barbarian' was linked from the frontpage! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: Art work was linked from the frontpage! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: Starlet thread was linked from the frontpage! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: DomWar4 work was linked from the frontpage! The Golden Grenade IV: For participating in the Dominance War IV and successfully finishing, well done soldier! - Issue reason: For participating in the Dominance War IV and successfully finishing, well done soldier! Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Silver: 2nd place in low poly challenge! - Issue reason: 2nd place in low poly challenge! Low Poly Game Art - Bronze: 3rd place in a low poly challenge! - Issue reason: 3rd place in a low poly challenge 
Total Awards: 11
I forgot to mention something important. This shader doesn't create its own shadows, it uses Max's internal shadow calculations. Therefore, you must have shadows enabled in the viewport for the lights you want to use.

Another point I should make : This shader has only been tested on Max2008. I can't say whether it works with any other version. This probably only pertains to the shadow casting, because everything else is just HLSL code and has nothing to do with Max.

On that note, this shader uses Pixel and Vertex Shader 3.0. If your video card does not support either of these, then this shader won't work.
I'm not sure that the shader really NEEDS to be 3.0.....it doesn't use any crazy advanced stuff so I can probably get away with 2.0. I'll look into that post an update later.
Buzzy is offline   Reply With Quote