When I try using shaders with textures I end up with
WARNING: there is no texture bound to the unit 0
Sometimes I get so many it just stops 'cos there are too many webGL errors.
http://www.babylonjs-playground.com/#TRNYD#16
I think the texture is not fully loaded when its being accessed.