Vec2i GetRequiredReflectionTextureSize()
{
//create texture
Vec2i textureSize = RendererWorld.Instance.DefaultViewport.DimensionsInPixels.Size;
if( reflectionTextureSize == ReflectionTextureSizes.HalfOfFrameBuffer )
textureSize /= 2;
if( reflectionTextureSize == ReflectionTextureSizes.QuarterOfFrameBuffer )
textureSize /= 4;
if( textureSize.X == 0 )
textureSize.X = 1;
if( textureSize.Y == 0 )
textureSize.Y = 1;
return textureSize;
}