Added a new texture wrap mode "clampzero", which outputs transparent black (or opaque black for textures without an alpha channel) rather than the texture's edge colors, when it's drawn or sampled from outside of its regular texture coordinate range.

This commit is contained in:
Alex Szpakowski
2015-11-30 02:22:20 -04:00
parent 2c4e713114
commit 4c82c96369
9 changed files with 43 additions and 32 deletions
+2
View File
@@ -1491,6 +1491,8 @@ bool Graphics::isSupported(Support feature) const
{
case SUPPORT_MULTI_CANVAS_FORMATS:
return Canvas::isMultiFormatMultiCanvasSupported();
case SUPPORT_CLAMP_ZERO:
return gl.isClampZeroTextureWrapSupported();
default:
return false;
}