26 lines
814 B
JavaScript
26 lines
814 B
JavaScript
(function(){
|
|
|
|
var RenderAdv = function(){
|
|
|
|
};
|
|
|
|
RenderAdv.prototype = {
|
|
|
|
preload: function(entityID) {
|
|
|
|
//########## RENDERING SETTINGS ############1
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").enable = true;
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").curve = 4;
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").exposure = -1.8;
|
|
},
|
|
|
|
|
|
|
|
unload: function(entityID) {
|
|
//############# RESTORE RENDER SETTINGS #############
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").enable = false;
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").curve = 1;
|
|
Render.getConfig("RenderMainView").getConfig("ToneMapping").exposure = 0;
|
|
}};
|
|
return new RenderAdv();
|
|
})
|