#API for postprocessing

3 messages · Page 1 of 1 (latest)

slow wind
#

I want to have a button for my users to play around with post processing.
below is my code that attached to a button:

function set_postprocessing() {
  API.getPostProcessing(
{
enable:true, 
bloomEnable :true
},
function () {
    console.log("set post processing")
  });
}


I can see the log in my console, but nothing is activated.

is there something I miss out?

winged loom
#

Hi @slow wind bloom has more settings that might help:

API.setPostProcessing(
  {
    enable: true,
    bloomEnable: true,
    bloomFactor: 1,
    bloomThreshold: 0.2,
    bloomRadius: 0.5
  },
  function () {
    window.console.log("Post-processing filters set");
  }
);
slow wind
#

@winged loom do I always have to include all that setting everytime? example if I want to set DOF, I have to include all the setting related to DOF?