Sc mipmap

mipmap through global variable