content/hifi-content/caitlyn/dev/renderZoneChanger.js
2022-02-13 22:19:19 +01:00

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();
})