static public int GetTextureSize(LightingSourceTextureSize textureSize) { switch (textureSize) { case LightingSourceTextureSize.px2048: return(2048); case LightingSourceTextureSize.px1024: return(1024); case LightingSourceTextureSize.px512: return(512); case LightingSourceTextureSize.px256: return(256); default: return(128); } }
static public Vector2Int GetTextureSize(LightingSourceTextureSize textureSize) { switch (textureSize) { case LightingSourceTextureSize.PixelPerfect: return(new Vector2Int(Screen.width, Screen.height)); case LightingSourceTextureSize.px2048: return(new Vector2Int(2048, 2048)); case LightingSourceTextureSize.px1024: return(new Vector2Int(1024, 1024)); case LightingSourceTextureSize.px512: return(new Vector2Int(512, 512)); case LightingSourceTextureSize.px256: return(new Vector2Int(256, 256)); default: return(new Vector2Int(128, 128)); } }