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