lua.wetgenes.grd.scale
g:scale(w,h,d)
Scale the image to the given dimensions, this is currently using a terrible scale filter that is only any good at halving or doubling the size.
This should only be used to create mipmaps until it is replaced with a better scale filter.