angle based (?) texturing

hey everyone,
I want to texture some terrain I built, but I don’t have a ton of time to do it so I’m looking for some shortcuts. Basically I want to texture the terrain with two main textures, a grass texture, and a rock texture. I want there to be grass on the flatter parts, and rock on the steeper parts, and some gradient of sorts in between, so I’m looking for a method to map textures based on the angle of the geometry. (please see pic for clarification)
http://img.photobucket.com/albums/v13/thegameboy/angle-tex-example.jpg
Do you guys have any idea how to do this, ideally procedurally? If I’m not being clear enough please say so and I’ll reword my question. Thanks in advance! ;p

:cool: http://vimeo.com/2508751

I bet that line up there is under 100 characters, eh?

Unless you’re talking about using using it in an animation and you want realistic grass or something?

gravy dude, that did the trick. Thanks for your help!