Material.prototype shader code improved