Added HDR texture formats
Former-commit-id: affa3c0842d3918977c48483bf485ac17e218448
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user