####A-Frame component wrapper for three.js atmosphere shader
<a-sun intensity="1" inclination="23.5" azimuth="0" />
Creates skybox with atmospheric shading and directional lighting
Property | Default | Description |
---|---|---|
intensity | 1 | |
inclination | 23.5 | |
azimuth | 0 | |
turbidity | ||
rayleighCoefficient | ||
mieCoefficient | ||
mieBias |
####To do
- convert attributes to degrees
- attach shader
- attach sky sphere
- attach directional light and register with lighting system
- let colour of sun disc drive the directional light colour
- derive cube map from sun component
Atmospheric scattering shader for GLSL based on work by Arcot Preetham, @renderwonk, Simon Wallner, martinsh, @blurspline et al.
Further reading
http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/ATI-LightScattering.pdf
http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html