Describe your issue here.
Version:
Issue type:
Tested on:
Desktop
Android
IOS
I was having troubles getting the scene to keep its ratio and definition on screen resizes, even though I was using the WHS.ResizeModule with the default options.
I just discovered the issue: I'm using the WHS.PostProcessorModule to add some passes and internally it uses the EffectsComposer which creates a new renderer.
This renderer is a different instance from the one that's being updated on the ResizeModule setSize method.
Not really sure if this is a bug (since I'm guessing there's not a direct fix — the manager cannot return the correct renderer, since the order of the modules is relevant), but at least there could be some note on the WHS.PostProcessorModule Documentation, warning about this scenario.
I'm willing to contribute with a PR if needed.
Cheers
Describe your issue here.
Version:
Issue type:
Tested on:
Desktop
Android
IOS
I was having troubles getting the scene to keep its ratio and definition on screen resizes, even though I was using the
WHS.ResizeModulewith the default options.I just discovered the issue: I'm using the
WHS.PostProcessorModuleto add some passes and internally it uses theEffectsComposerwhich creates a new renderer.This renderer is a different instance from the one that's being updated on the
ResizeModulesetSizemethod.Not really sure if this is a bug (since I'm guessing there's not a direct fix — the
managercannot return the correctrenderer, since the order of the modules is relevant), but at least there could be some note on theWHS.PostProcessorModuleDocumentation, warning about this scenario.I'm willing to contribute with a PR if needed.
Cheers