supermedium / aframe-environment-component

:sunrise_over_mountains: Infinite background environments for A-Frame in a line of HTML.
https://supermedium.com/aframe-environment-component/
MIT License
456 stars 112 forks source link

Use dithering in gradientshader and skyshader to reduce banding #82

Closed mrxz closed 1 year ago

mrxz commented 1 year ago

The custom sky shaders for the gradient and atmosphere sky types can exhibit very noticeable banding. TRHEE.js has shader chunks that perform dithering to reduce this. This PR introduces the dithering in both shaders:

Before After
image image
dmarcos commented 1 year ago

Thanks so much for the patience. This is awesome work