Shaders now automatically pass the texture used (sampler2D type)