<commit_before>/**
 * MegaMol
 * Copyright (c) 2022, MegaMol Dev Team
 * All rights reserved.
 */
#include "DepthDarkening.h"

#include <glm/glm.hpp>
#include <numbers>

#include "mmcore/CoreInstance.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/param/IntParam.h"

#include "compositing_gl/CompositingCalls.h"

#include "mmcore_gl/utility/ShaderFactory.h"

megamol::compositing::DepthDarkening::DepthDarkening()
        : core::Module()
        , outputTexSlot_("OutputTexture", "Gives access to the resulting output texture")
        , inputColorSlot_("ColorTexture", "Connects the color render target texture")
        , inputDepthSlot_("DepthTexture", "Connects the depth render target texture")
        , kernelRadiusParam_(
              "kernelRadius", "The radius of the used gauss kernel in pixels (for Full HD 40 is recommended)")
        , lambdaValueParam_("lambda", "Lambda value determining the strength of the darkening effect. 0 shuts it off")
        , version_(0)
        , blurShader_(nullptr)
        , darkenShader_(nullptr)
        , intermediateTex_(nullptr)
        , intermediateTex2_(nullptr)
        , outputTex_(nullptr) {

    outputTexSlot_.SetCallback(CallTexture2D::ClassName(), CallTexture2D::FunctionName(CallTexture2D::CallGetData),
        &DepthDarkening::getDataCallback);
    outputTexSlot_.SetCallback(CallTexture2D::ClassName(), CallTexture2D::FunctionName(CallTexture2D::CallGetMetaData),
        &DepthDarkening::getMetaDataCallback);
    this->MakeSlotAvailable(&outputTexSlot_);<commit_msg>fixed compile error for compilers without <numbers> headers<commit_after>/**
 * MegaMol
 * Copyright (c) 2022, MegaMol Dev Team
 * All rights reserved.
 */
#include "DepthDarkening.h"

#include <glm/glm.hpp>

#include "mmcore/CoreInstance.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/param/IntParam.h"

#include "compositing_gl/CompositingCalls.h"

#include "mmcore_gl/utility/ShaderFactory.h"

megamol::compositing::DepthDarkening::DepthDarkening()
        : core::Module()
        , outputTexSlot_("OutputTexture", "Gives access to the resulting output texture")
        , inputColorSlot_("ColorTexture", "Connects the color render target texture")
        , inputDepthSlot_("DepthTexture", "Connects the depth render target texture")
        , kernelRadiusParam_(
              "kernelRadius", "The radius of the used gauss kernel in pixels (for Full HD 40 is recommended)")
        , lambdaValueParam_("lambda", "Lambda value determining the strength of the darkening effect. 0 shuts it off")
        , version_(0)
        , blurShader_(nullptr)
        , darkenShader_(nullptr)
        , intermediateTex_(nullptr)
        , intermediateTex2_(nullptr)
        , outputTex_(nullptr) {

    outputTexSlot_.SetCallback(CallTexture2D::ClassName(), CallTexture2D::FunctionName(CallTexture2D::CallGetData),
        &DepthDarkening::getDataCallback);
    outputTexSlot_.SetCallback(CallTexture2D::ClassName(), CallTexture2D::FunctionName(CallTexture2D::CallGetMetaData),
        &DepthDarkening::getMetaDataCallback);
    this->MakeSlotAvailable(&outputTexSlot_);
{'fraction_non_alphanumeric': 0.11132499197946744, 'fraction_numerical': 0.009624639076034648, 'mean_word_length': 4.470175438596491, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1780344', 'n_tokens_mistral': 905, 'n_tokens_neox': 898, 'n_words': 194}