Crater system

Hi

Is it possible to write a shader that has a rock texture obscured by a ground texture, say grass, and the grass texture can be removed using a raycast so that you can see the rock underneath? In that way it would look like a crater.

look into this Real-time Terrain Deformation in Unity3D | AlmostLogical.com

If you want the crater to be just a texture, take a look at this: http://forum.unity3d.com/threads/141792-Decal-System

It’s free and it allows you to project textures onto a mesh or terrain.

Or use raycasts in combination with (i.e.) a vertex-paint/blend shader, or something with an idea based on how splat-maps are used (mostly used with terrain shading).

All the ideas are good but I’d like to go with this option. Do you have anywhere I can get started or any source code?