private unsafe static MipGeneratorFn PickMipGenerator(FreeTypeFont font) { // TODO: Add a property that controls whether srgb is used. Or is freetype always srgb? return(font.sRGB // FIXME: Use a sRGB gamma ramp for this? ? MipGenerator.Get(MipFormat.pGray4 | MipFormat.sRGB) : font.MipGen?.Get(MipFormat.pGray4) ?? MipGenerator.Get(MipFormat.pGray4)); }
public IBLFilterCharlie(RenderPipelineResources renderPipelineResources, MipGenerator mipGenerator) { m_RenderPipelineResources = renderPipelineResources; m_MipGenerator = mipGenerator; }