mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Remove smooth clouds shaders
This commit is contained in:
parent
4b88a32c1c
commit
6ad43575ff
2 changed files with 0 additions and 46 deletions
|
@ -1,22 +0,0 @@
|
|||
uniform lowp vec4 fogColor;
|
||||
uniform float fogDistance;
|
||||
uniform float fogShadingParameter;
|
||||
varying highp vec3 eyeVec;
|
||||
|
||||
varying lowp vec4 varColor;
|
||||
varying lowp vec3 normal;
|
||||
uniform vec3 v_LightDirection;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
float brightness = max(dot(-v_LightDirection, normal), 0.0);
|
||||
vec4 col = varColor;
|
||||
|
||||
col.rgb *= brightness;
|
||||
|
||||
float clarity = clamp(fogShadingParameter
|
||||
- fogShadingParameter * length(eyeVec) / fogDistance, 0.0, 1.0);
|
||||
col.rgb = mix(fogColor.rgb, col.rgb, clarity);
|
||||
|
||||
gl_FragColor = col;
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
uniform lowp vec4 materialColor;
|
||||
|
||||
varying lowp vec4 varColor;
|
||||
|
||||
varying highp vec3 eyeVec;
|
||||
|
||||
varying lowp vec3 normal;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = mWorldViewProj * inVertexPosition;
|
||||
|
||||
#ifdef GL_ES
|
||||
vec4 color = inVertexColor.bgra;
|
||||
#else
|
||||
vec4 color = inVertexColor;
|
||||
#endif
|
||||
|
||||
color *= materialColor;
|
||||
varColor = color;
|
||||
normal = inVertexNormal;
|
||||
|
||||
eyeVec = -(mWorldView * inVertexPosition).xyz;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue