11 lines
No EOL
183 B
GLSL
11 lines
No EOL
183 B
GLSL
#include "../../math/const.glsl"
|
|
|
|
#ifndef FNC_RAYLEIGH
|
|
#define FNC_RAYLEIGH
|
|
|
|
// Rayleigh phase
|
|
float rayleigh(const in float mu) {
|
|
return 3. * (1. + mu*mu) / (16. * PI);
|
|
}
|
|
|
|
#endif |