|
|
@@ -585,7 +585,9 @@ namespace bs { namespace ct
|
|
|
|
|
|
setTextureAnisotropy(unit, stateProps.getTextureAnisotropy());
|
|
|
setTextureCompareMode(unit, stateProps.getComparisonFunction());
|
|
|
+
|
|
|
setTextureMipmapBias(unit, stateProps.getTextureMipmapBias());
|
|
|
+ setTextureMipmapRange(unit, stateProps.getMinimumMip(), stateProps.getMaximumMip());
|
|
|
|
|
|
const UVWAddressingMode& uvw = stateProps.getTextureAddressingMode();
|
|
|
setTextureAddressingMode(unit, uvw);
|
|
|
@@ -1603,6 +1605,15 @@ namespace bs { namespace ct
|
|
|
BS_CHECK_GL_ERROR();
|
|
|
}
|
|
|
|
|
|
+ void GLRenderAPI::setTextureMipmapRange(UINT16 unit, float min, float max)
|
|
|
+ {
|
|
|
+ glTexParameterf(mTextureInfos[unit].type, GL_TEXTURE_MIN_LOD, min);
|
|
|
+ BS_CHECK_GL_ERROR();
|
|
|
+
|
|
|
+ glTexParameterf(mTextureInfos[unit].type, GL_TEXTURE_MAX_LOD, max);
|
|
|
+ BS_CHECK_GL_ERROR();
|
|
|
+ }
|
|
|
+
|
|
|
void GLRenderAPI::setSceneBlending(BlendFactor sourceFactor, BlendFactor destFactor, BlendOperation op)
|
|
|
{
|
|
|
GLint sourceBlend = getBlendMode(sourceFactor);
|