<commit_before>var project = new DemoProject();
var sponza;

project.onInit = function()
{
    initRenderer(this.renderer);
    initCamera(this.camera);
    initScene(this.scene);
};

window.onload = function ()
{
    var options = new HX.InitOptions();
    options.useHDR = true;
    options.maxDepthPrecision = true;
    options.directionalShadowFilter = new HX.VarianceDirectionalShadowFilter();
    options.lightingModel = HX.GGXLightingModel;
    project.init(document.getElementById('webglContainer'), options);
};

function initRenderer(renderer)
{
    var ssr = new HX.ScreenSpaceReflections(32);
    ssr.scale = .5;
    ssr.stepSize = 20;
    renderer.localReflections = ssr;

    var ssao = new HX.SSAO(25);
    ssao.strength = 2.0;
    ssao.sampleRadius = 4.0;
    ssao.fallOffDistance = 8.0;
    renderer.ambientOcclusion = ssao;
}

function initCamera(camera)
{
    camera.position.set(0.0, 10.0, 0.0);
    camera.nearDistance = .1;
    camera.farDistance = 100.0;

    var floatController = new FloatController();
    floatController.speed = 10.0;
    camera.addComponent(floatController);

    var bloom = new HX.BloomEffect(500, .5, 8);
    bloom.thresholdLuminance = 1.0;
    camera.addComponent(bloom);

    var tonemap = new HX.FilmicToneMapEffect(true);
    tonemap.exposure = 0;
    camera.addComponent(tonemap);
    camera.addComponent(new HX.FXAA());
}

function initScene(scene)
{
    var dirLight = new HX.DirectionalLight();
    dirLight.color = new HX.Color(1.0, .9, .7);
    dirLight.direction = new HX.Float4(3.0, -5.0, 1.0);
    dirLight.intensity = 20.0;
    dirLight.numCascades = 4;
    dirLight.castShadows = true;
<commit_msg>Update exposure for Sponza example<commit_after>var project = new DemoProject();
var sponza;

project.onInit = function()
{
    initRenderer(this.renderer);
    initCamera(this.camera);
    initScene(this.scene);
};

window.onload = function ()
{
    var options = new HX.InitOptions();
    options.useHDR = true;
    options.maxDepthPrecision = true;
    options.directionalShadowFilter = new HX.VarianceDirectionalShadowFilter();
    options.lightingModel = HX.GGXLightingModel;
    project.init(document.getElementById('webglContainer'), options);
};

function initRenderer(renderer)
{
    var ssr = new HX.ScreenSpaceReflections(32);
    ssr.scale = .5;
    ssr.stepSize = 20;
    renderer.localReflections = ssr;

    var ssao = new HX.SSAO(25);
    ssao.strength = 2.0;
    ssao.sampleRadius = 4.0;
    ssao.fallOffDistance = 8.0;
    renderer.ambientOcclusion = ssao;
}

function initCamera(camera)
{
    camera.position.set(0.0, 10.0, 0.0);
    camera.nearDistance = .1;
    camera.farDistance = 100.0;

    var floatController = new FloatController();
    floatController.speed = 10.0;
    camera.addComponent(floatController);

    var bloom = new HX.BloomEffect(500, .5, 8);
    bloom.thresholdLuminance = 1.0;
    camera.addComponent(bloom);

    var tonemap = new HX.FilmicToneMapEffect(true);
    tonemap.exposure = 2;
    camera.addComponent(tonemap);
    camera.addComponent(new HX.FXAA());
}

function initScene(scene)
{
    var dirLight = new HX.DirectionalLight();
    dirLight.color = new HX.Color(1.0, .9, .7);
    dirLight.direction = new HX.Float4(3.0, -5.0, 1.0);
    dirLight.intensity = 20.0;
    dirLight.numCascades = 4;
    dirLight.castShadows = true;

{'fraction_non_alphanumeric': 0.12802871672150762, 'fraction_numerical': 0.03051151660185462, 'mean_word_length': 3.4765729585006695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5298322', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1172, 'n_words': 220}