Getting a terrain texture Generated

Hi,

How do I get generated terrain textures?

I am trying but I’m not sure how to get that into a image.

/// user material method
Texture * blendtex=new Texture(context_);
blendtex = terrain-> GetMaterial() -> GetTexture(TU_DIFFUSE);

Vivienne

This might help :wink: http://discourse.urho3d.io/t/solved-loading-a-texture/927/3