LybOutlines/shaders/lib/atmospherics/fog/caveFactor.glsl
2024-06-25 14:45:54 +02:00

6 lines
No EOL
190 B
GLSL

#ifndef INCLUDE_CAVE_FACTOR
#define INCLUDE_CAVE_FACTOR
float GetCaveFactor() {
return clamp(1.0 - cameraPosition.y / oceanAltitude, 0.0, 1.0 - eyeBrightnessM);
}
#endif