diff --git a/src/Texture.h b/src/Texture.h index 8800994cc..00880b706 100644 --- a/src/Texture.h +++ b/src/Texture.h @@ -190,6 +190,17 @@ template class Texture { unbind(); } + /** + * @brief Set border color + * + * Border color when wrapping is set to ClampToBorder. + */ + void setBorderColor(const Vector4& color) { + bind(); + glTexParameterfv(target, GL_TEXTURE_BORDER_COLOR, color.data()); + unbind(); + } + /** * @brief Generate mipmap *