<commit_before>#include "MarchingCubesPipeline.h"

#include <gloperate/painter/AbstractViewportCapability.h>
#include <gloperate/painter/TypedRenderTargetCapability.h>
#include <gloperate/painter/PerspectiveProjectionCapability.h>
#include <gloperate/painter/AbstractCameraCapability.h>
#include <gloperate/painter/AbstractVirtualTimeCapability.h>
#include <gloperate/painter/AbstractTargetFramebufferCapability.h>
#include <gloperate/painter/InputCapability.h>
#include <gloperate/resources/ResourceManager.h>
#include <gloperate/navigation/CoordinateProvider.h>

#include "AddChunksStage.h"
#include "ManageChunksStage.h"
#include "RenderStage.h"
#include "TerrainTypeStage.h"
#include "TerrainModificationStage.h"


MarchingCubesPipeline::MarchingCubesPipeline()
: AbstractPipeline("MarchingCubes")
, viewport(nullptr)
, showGrid(false)
, showWireframe(false)
, freezeChunkLoading(false)
, modificationRadius(0.25f)
, useMipMap(false)
, userRotationVector1(glm::vec3(1, 0.3, 0.5))
, userRotationVector2(glm::vec3(0.1, 0.5, 0.3))
, userWarpFactor(3.4f)
, removeFloaters(false)
, targetFBO(nullptr)
, renderTargets(nullptr)
, useShadow(true)
, useOcclusion(true)
, userBaseTextureFilePath("data/marchingcubes/ground.png")
, useGroundTexture(true)
, userExtraTextureFilePath("data/marchingcubes/terrain_color.jpg")
, useStriationTexture(true)
, terrainType(TerrainType::Moon)
, userFragmentShaderFilePath("data/marchingcubes/marchingcubes.frag")
, userDensityGenererationShaderFilePath("data/marchingcubes/densitygeneration.vert")
{
    auto terrainTypeStage = new TerrainTypeStage();
    auto addChunksStage = new AddChunksStage();
    auto terrainModificationStage = new TerrainModificationStage();
    auto manageChunksStage = new ManageChunksStage();
    auto renderStage = new RenderStage();

    terrainTypeStage->terrainType = terrainType;<commit_msg>Use mip mapping by default<commit_after>#include "MarchingCubesPipeline.h"

#include <gloperate/painter/AbstractViewportCapability.h>
#include <gloperate/painter/TypedRenderTargetCapability.h>
#include <gloperate/painter/PerspectiveProjectionCapability.h>
#include <gloperate/painter/AbstractCameraCapability.h>
#include <gloperate/painter/AbstractVirtualTimeCapability.h>
#include <gloperate/painter/AbstractTargetFramebufferCapability.h>
#include <gloperate/painter/InputCapability.h>
#include <gloperate/resources/ResourceManager.h>
#include <gloperate/navigation/CoordinateProvider.h>

#include "AddChunksStage.h"
#include "ManageChunksStage.h"
#include "RenderStage.h"
#include "TerrainTypeStage.h"
#include "TerrainModificationStage.h"


MarchingCubesPipeline::MarchingCubesPipeline()
: AbstractPipeline("MarchingCubes")
, viewport(nullptr)
, showGrid(false)
, showWireframe(false)
, freezeChunkLoading(false)
, modificationRadius(0.25f)
, useMipMap(true)
, userRotationVector1(glm::vec3(1, 0.3, 0.5))
, userRotationVector2(glm::vec3(0.1, 0.5, 0.3))
, userWarpFactor(3.4f)
, removeFloaters(false)
, targetFBO(nullptr)
, renderTargets(nullptr)
, useShadow(true)
, useOcclusion(true)
, userBaseTextureFilePath("data/marchingcubes/ground.png")
, useGroundTexture(true)
, userExtraTextureFilePath("data/marchingcubes/terrain_color.jpg")
, useStriationTexture(true)
, terrainType(TerrainType::Moon)
, userFragmentShaderFilePath("data/marchingcubes/marchingcubes.frag")
, userDensityGenererationShaderFilePath("data/marchingcubes/densitygeneration.vert")
{
    auto terrainTypeStage = new TerrainTypeStage();
    auto addChunksStage = new AddChunksStage();
    auto terrainModificationStage = new TerrainModificationStage();
    auto manageChunksStage = new ManageChunksStage();
    auto renderStage = new RenderStage();

    terrainTypeStage->terrainType = terrainType;
{'fraction_non_alphanumeric': 0.1174892703862661, 'fraction_numerical': 0.01072961373390558, 'mean_word_length': 8.736292428198434, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '5099256', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1232, 'n_words': 161}