babylon-runtime / _r

Code Less, Babylon More
https://babylon-runtime.github.io/
Apache License 2.0
8 stars 1 forks source link

scene imageProcessing seems not to be recognized #20

Closed Vinc3r closed 4 years ago

Vinc3r commented 4 years ago

see https://codepen.io/vinc3r/pen/OJPMjZG

The patch does not enable vignette. You can use thisjavascript code to execute it in the console, you will see the result we should have:

_r.scene.imageProcessingConfiguration.isEnabled = true;
_r.scene.imageProcessingConfiguration.vignetteEnabled = true;
_r.scene.imageProcessingConfiguration.vignetteWeight = 100;
_r.scene.imageProcessingConfiguration.vignetteColor = BABYLON.Color4.FromHexString("#FF000000");
_r.scene.imageProcessingConfiguration.vignetteCameraFov = 1;