add alpha blendering option (disabled by default) using w component of color

add low-level support function demo (test)
This commit is contained in:
Erwin Coumans
2014-10-15 18:05:11 -07:00
parent ce0ad64475
commit eda1ff77db
8 changed files with 147 additions and 10 deletions

View File

@@ -43,7 +43,8 @@ class GLInstancingRenderer : public CommonRenderInterface
int m_screenHeight;
int m_upAxis;
bool m_enableBlend;
void renderSceneInternal(int renderMode=B3_DEFAULT_RENDERMODE);
@@ -156,6 +157,10 @@ public:
return m_maxNumObjectCapacity;
}
void enableShadowMap();
virtual void enableBlend(bool blend)
{
m_enableBlend = blend;
}
};