0beqz / realism-effects

SSGI, Motion Blur, TRAA - Effects to enhance your three.js scene's realism
https://realism-effects-obeqz.vercel.app/
MIT License
1.41k stars 63 forks source link

Set clearcolor? #7

Closed timknip closed 1 year ago

timknip commented 1 year ago

First of all: great work! Thanks.

Perhaps I'm missing something, but would it be possible to make it adhere to renderer.setClearColor() or canvas.style.background?

Seems that without the dome mesh the background is always black:

image

Setting scene.background to white yields artefacts in the corners: image

timknip commented 1 year ago

Actually the darkening towards the corners is the case always (at least with the SSGI default options from /example).

screenshot (5)

Of course: minor, but still: product presentations often need a transparent or single colored background. Just interested whether it's feasible and / or there's workarounds possible.

timknip commented 1 year ago

Never mind, the 'issue' was introduced by the vignette effect. Without it all good.

screenshot (6) screenshot (7)