ebruneton / precomputed_atmospheric_scattering

This project provides a new implementation of our EGSR 2008 paper "Precomputed Atmospheric Scattering".
BSD 3-Clause "New" or "Revised" License
908 stars 120 forks source link

Fix textures of different types use the same location #44

Open bbbbx opened 2 years ago

bbbbx commented 2 years ago

Avoid use default location 0(already used for sampler2D transmittance_texture) for sampler3D single_mie_scattering_texture, otherwise calling glDrawArrays will cause a black window with error GL_INVALID_OPERATION on macOS M1.