mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
Remove PointsAndLines blend mode for models
* Duplicate of deafult blend mode
This commit is contained in:
@@ -473,7 +473,6 @@ RenderableModel::RenderableModel(const ghoul::Dictionary& dictionary)
|
||||
|
||||
_blendingFuncOption.addOption(DefaultBlending, "Default");
|
||||
_blendingFuncOption.addOption(AdditiveBlending, "Additive");
|
||||
_blendingFuncOption.addOption(PointsAndLinesBlending, "Points and Lines");
|
||||
_blendingFuncOption.addOption(PolygonBlending, "Polygon");
|
||||
_blendingFuncOption.addOption(ColorAddingBlending, "Color Adding");
|
||||
|
||||
@@ -741,6 +740,7 @@ void RenderableModel::render(const RenderData& data, RendererTasks&) {
|
||||
_program->setUniform(_uniformCache.specularIntensity, _specularIntensity);
|
||||
_program->setUniform(_uniformCache.performShading, _performShading);
|
||||
|
||||
// Configure blending
|
||||
glEnablei(GL_BLEND, 0);
|
||||
switch (_blendingFuncOption) {
|
||||
case DefaultBlending:
|
||||
@@ -749,9 +749,6 @@ void RenderableModel::render(const RenderData& data, RendererTasks&) {
|
||||
case AdditiveBlending:
|
||||
glBlendFunc(GL_ONE, GL_ONE);
|
||||
break;
|
||||
case PointsAndLinesBlending:
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
break;
|
||||
case PolygonBlending:
|
||||
glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user