For a RenderMaterial use GetTextureForUsage
RenderMaterial
GetTextureForUsage
Here a short script that gets that diffuse texture:
It should give you enough info to get started.