Beispiel #1
0
 internal static void BindDitheredTextureSet(CommandBuffer cmd, DitheredTextureSet ditheredTextureSet)
 {
     cmd.SetGlobalTexture(HDShaderIDs._OwenScrambledTexture, ditheredTextureSet.owenScrambled256Tex);
     cmd.SetGlobalTexture(HDShaderIDs._ScramblingTileXSPP, ditheredTextureSet.scramblingTile);
     cmd.SetGlobalTexture(HDShaderIDs._RankingTileXSPP, ditheredTextureSet.rankingTile);
     cmd.SetGlobalTexture(HDShaderIDs._ScramblingTexture, ditheredTextureSet.scramblingTex);
 }
Beispiel #2
0
        internal DitheredTextureSet DitheredTextureSet256SPP()
        {
            DitheredTextureSet ditheredTextureSet = new DitheredTextureSet();

            ditheredTextureSet.owenScrambled256Tex = m_RenderPipelineResources.textures.owenScrambled256Tex;
            ditheredTextureSet.scramblingTile      = m_RenderPipelineResources.textures.scramblingTile256SPP;
            ditheredTextureSet.rankingTile         = m_RenderPipelineResources.textures.rankingTile256SPP;
            ditheredTextureSet.scramblingTex       = m_RenderPipelineResources.textures.scramblingTex;
            return(ditheredTextureSet);
        }
Beispiel #3
0
        internal DitheredTextureSet DitheredTextureSet8SPP()
        {
            // This is a structure, so the new shouldn't be a problem.
            DitheredTextureSet ditheredTextureSet = new DitheredTextureSet();

            ditheredTextureSet.owenScrambled256Tex = m_RenderPipelineResources.textures.owenScrambled256Tex;
            ditheredTextureSet.scramblingTile      = m_RenderPipelineResources.textures.scramblingTile8SPP;
            ditheredTextureSet.rankingTile         = m_RenderPipelineResources.textures.rankingTile8SPP;
            ditheredTextureSet.scramblingTex       = m_RenderPipelineResources.textures.scramblingTex;
            return(ditheredTextureSet);
        }