Allows ALS filters for space shaders
This commit is contained in:
parent
fe6c709214
commit
6f83fe0c34
2 changed files with 5 additions and 4 deletions
|
@ -65,7 +65,7 @@ vec3 rayleigh_out_shift(in vec3 color, in float outscatter);
|
|||
vec3 get_hazeColor(in float light_arg);
|
||||
vec3 searchlight();
|
||||
vec3 landing_light(in float offset, in float offsetv);
|
||||
|
||||
vec3 filter_combined (in vec3 color);
|
||||
|
||||
float luminance(vec3 color)
|
||||
{
|
||||
|
@ -353,7 +353,8 @@ fragColor.rgb = mix(hazeColor + secondary_light * fog_backscatter(mvisibility),
|
|||
|
||||
}
|
||||
|
||||
|
||||
fragColor.rgb = filter_combined(fragColor.rgb);
|
||||
|
||||
gl_FragColor = fragColor;
|
||||
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ vec3 addLights(in vec3 color1, in vec3 color2);
|
|||
vec4 color_temperature (in float T);
|
||||
vec3 filter_combined (in vec3 color) ;
|
||||
vec3 moonlight_perception (in vec3 light) ;
|
||||
|
||||
vec3 filter_combined (in vec3 color) ;
|
||||
|
||||
float light_func (in float x, in float a, in float b, in float c, in float d, in float e)
|
||||
{
|
||||
|
@ -672,7 +672,7 @@ void main (void)
|
|||
|
||||
fragColor.rgb = mix(hazeColor +secondary_light * fog_backscatter(mvisibility), fragColor.rgb,transmission);
|
||||
|
||||
|
||||
fragColor.rgb = filter_combined(fragColor.rgb);
|
||||
gl_FragColor = fragColor;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue