working textures with Core and no more hard coded attributes