mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 06:48:35 -05:00
Remove unused textures
This commit is contained in:
@@ -79,9 +79,8 @@ namespace {
|
||||
"specularIntensity", "performManualDepthTest", "gBufferDepthTexture"
|
||||
};
|
||||
|
||||
constexpr std::array<const char*, 5> UniformOpacityNames = {
|
||||
"opacity", "colorTexture", "depthTexture", "positionTexture",
|
||||
"normalTexture"
|
||||
constexpr std::array<const char*, 3> UniformOpacityNames = {
|
||||
"opacity", "colorTexture", "depthTexture"
|
||||
};
|
||||
|
||||
constexpr openspace::properties::Property::PropertyInfo EnableAnimationInfo = {
|
||||
@@ -860,25 +859,6 @@ void RenderableModel::render(const RenderData& data, RendererTasks&) {
|
||||
);
|
||||
_quadProgram->setUniform(_uniformOpacityCache.colorTexture, colorTextureUnit);
|
||||
|
||||
ghoul::opengl::TextureUnit positionTextureUnit;
|
||||
positionTextureUnit.activate();
|
||||
glBindTexture(
|
||||
GL_TEXTURE_2D,
|
||||
global::renderEngine->renderer()->additionalColorTexture2()
|
||||
);
|
||||
_quadProgram->setUniform(
|
||||
_uniformOpacityCache.positionTexture,
|
||||
positionTextureUnit
|
||||
);
|
||||
|
||||
ghoul::opengl::TextureUnit normalTextureUnit;
|
||||
normalTextureUnit.activate();
|
||||
glBindTexture(
|
||||
GL_TEXTURE_2D,
|
||||
global::renderEngine->renderer()->additionalColorTexture3()
|
||||
);
|
||||
_quadProgram->setUniform(_uniformOpacityCache.normalTexture, normalTextureUnit);
|
||||
|
||||
ghoul::opengl::TextureUnit depthTextureUnit;
|
||||
depthTextureUnit.activate();
|
||||
glBindTexture(
|
||||
|
||||
@@ -122,8 +122,7 @@ private:
|
||||
|
||||
// Opacity program
|
||||
ghoul::opengl::ProgramObject* _quadProgram = nullptr;
|
||||
UniformCache(opacity, colorTexture, depthTexture, positionTexture,
|
||||
normalTexture) _uniformOpacityCache;
|
||||
UniformCache(opacity, colorTexture, depthTexture) _uniformOpacityCache;
|
||||
|
||||
// Store the original RenderBin
|
||||
Renderable::RenderBin _originalRenderBin;
|
||||
|
||||
Reference in New Issue
Block a user