Render custom shaders at the selected mip level. Refs #302

This commit is contained in:
baldurk
2016-07-19 20:40:11 +02:00
parent 81c8f1f77e
commit bde21b0c73
8 changed files with 84 additions and 43 deletions
+4 -1
View File
@@ -2116,9 +2116,12 @@ namespace renderdocui.Windows
else
gammaDisplay.Enabled = false;
m_TexDisplay.linearDisplayAsGamma = gammaDisplay.Checked;
m_TexDisplay.linearDisplayAsGamma = !gammaDisplay.Enabled || gammaDisplay.Checked;
}
if (tex != null && tex.format.srgbCorrected)
m_TexDisplay.linearDisplayAsGamma = false;
bool dsv = false;
if(tex != null)
dsv = ((tex.creationFlags & TextureCreationFlags.DSV) != 0) || (tex.format.compType == FormatComponentType.Depth);