Added HDR texture formats

Former-commit-id: affa3c0842d3918977c48483bf485ac17e218448
This commit is contained in:
Lynix
2013-08-28 03:05:46 +02:00
parent 866ff64548
commit df8449c13e
4 changed files with 109 additions and 28 deletions

View File

@@ -1306,6 +1306,17 @@ bool NzTexture::IsFormatSupported(nzPixelFormat format)
case nzPixelFormat_RGBA4:
return true;
// Formats supportés depuis OpenGL 3
case nzPixelFormat_RGB16F:
case nzPixelFormat_RGB16I:
case nzPixelFormat_RGB32F:
case nzPixelFormat_RGB32I:
case nzPixelFormat_RGBA16F:
case nzPixelFormat_RGBA16I:
case nzPixelFormat_RGBA32F:
case nzPixelFormat_RGBA32I:
return NzOpenGL::GetVersion() >= 300;
// Formats de profondeur (Supportés avec les FBOs)
case nzPixelFormat_Depth16:
case nzPixelFormat_Depth24: