<commit_before>#include <osg/MatrixTransform>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgParticle/ParticleSystemUpdater>
#include <osg/ShapeDrawable>
#include <osgShadow/ParallelSplitShadowMap>

#include "objects/Skybox.h"
#include "objects/Sun.h"
#include "objects/Nebula.h"
#include "objects/Asteroid.h"
#include "objects/Sphere.h"
#include "objects/Torus.h"
#include "objects/Chronos.h"
#include "objects/Reaper.h"
#include "objects/PlanetRing.h"
#include "objects/Comet.h"
#include "objects/AsteroidField.h"

#include "util.h"

#include "MainScene.h"

using namespace osg;

    ref_ptr<Group> ph::MainScene::main = new Group;
    ref_ptr<osgShadow::ShadowedScene> ph::MainScene::ss = new osgShadow::ShadowedScene;


ph::MainScene::MainScene() {
    ref_ptr<osgShadow::ParallelSplitShadowMap> sm = new osgShadow::ParallelSplitShadowMap;
    ss->setShadowTechnique(sm.get());
    ss->addChild(main.get());<commit_msg>Switching to more stable, simpler shadow-shader<commit_after>#include <osg/MatrixTransform>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgParticle/ParticleSystemUpdater>
#include <osg/ShapeDrawable>
#include <osgShadow/ShadowMap>

#include "objects/Skybox.h"
#include "objects/Sun.h"
#include "objects/Nebula.h"
#include "objects/Asteroid.h"
#include "objects/Sphere.h"
#include "objects/Torus.h"
#include "objects/Chronos.h"
#include "objects/Reaper.h"
#include "objects/PlanetRing.h"
#include "objects/Comet.h"
#include "objects/AsteroidField.h"

#include "util.h"

#include "MainScene.h"

using namespace osg;

    ref_ptr<Group> ph::MainScene::main = new Group;
    ref_ptr<osgShadow::ShadowedScene> ph::MainScene::ss = new osgShadow::ShadowedScene;


ph::MainScene::MainScene() {
    ref_ptr<osgShadow::ShadowMap> sm = new osgShadow::ShadowMap;
    sm->setAmbientBias(Vec2(0.5,1));
    ss->setShadowTechnique(sm.get());
    ss->addChild(main.get());
{'fraction_non_alphanumeric': 0.15428870292887029, 'fraction_numerical': 0.0031380753138075313, 'mean_word_length': 6.531496062992126, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 26, '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': '4299562', 'n_tokens_mistral': 714, 'n_tokens_neox': 710, 'n_words': 117}