コード例 #1
0
ファイル: FTFont.cs プロジェクト: sq/Libraries
 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));
 }
コード例 #2
0
 public IBLFilterCharlie(RenderPipelineResources renderPipelineResources, MipGenerator mipGenerator)
 {
     m_RenderPipelineResources = renderPipelineResources;
     m_MipGenerator            = mipGenerator;
 }