mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 12:34:11 +02:00
44 lines
954 B
Text
44 lines
954 B
Text
<!
|
|
// Haze.slh
|
|
//
|
|
// Created by Nissim Hadar on 9/13/2017
|
|
// Copyright 2013 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
!>
|
|
<@if not HAZE_SLH@>
|
|
<@def HAZE_SLH@>
|
|
|
|
const int HAZE_MODE_IS_ACTIVE = 1 << 0;
|
|
const int HAZE_MODE_IS_ALTITUDE_BASED = 1 << 1;
|
|
const int HAZE_MODE_IS_DIRECTIONAL_LIGHT_ATTENUATED = 1 << 2;
|
|
const int HAZE_MODE_IS_MODULATE_COLOR = 1 << 3;
|
|
|
|
struct HazeParams {
|
|
vec3 hazeColor;
|
|
float directionalLightBlend;
|
|
|
|
vec3 directionalLightColor;
|
|
float hazeBaseReference;
|
|
|
|
vec3 colorModulationFactor;
|
|
int hazeMode;
|
|
|
|
float hazeRangeFactor;
|
|
float hazeAltitudeFactor;
|
|
|
|
float hazeRangeFactorKeyLight;
|
|
float hazeAltitudeFactorKeyLight;
|
|
|
|
float backgroundBlendValue;
|
|
};
|
|
|
|
layout(std140) uniform hazeBuffer {
|
|
HazeParams hazeParams;
|
|
};
|
|
|
|
uniform sampler2D linearDepthMap;
|
|
|
|
<@endif@>
|
|
|