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.43k stars 67 forks source link

poissionDenoise.frag compile error if not NORMAL_IN_RGB #27

Closed Rabbid76 closed 1 year ago

Rabbid76 commented 1 year ago

If "NORMAL_IN_RGB" is not defined, the following line in "poissionDenoise.frag" causes a compilation error:

float center = texel.rgb;

For a solution see https://github.com/0beqz/realism-effects/pull/21

0beqz commented 1 year ago

Thanks, I think I'll have to rewrite the poisson denoiser as it turned more into a general GI denoiser and thus is too comprehensive for denoising AO.