fuckingtech/public/assets/glsl/lygia/lighting/common/rayleigh.hlsl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

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