private bool IsCubemap() { Texture target = base.target as Texture; return ((target != null) && (target.dimension == TextureDimension.Cube)); }