add v1.541 (Extreme)
This commit is contained in:
17
shaders/gbuffers_weather.fsh
Normal file
17
shaders/gbuffers_weather.fsh
Normal file
@@ -0,0 +1,17 @@
|
||||
#version 120
|
||||
/* DRAWBUFFERS:26 */
|
||||
|
||||
varying vec4 color;
|
||||
|
||||
varying vec2 texcoord;
|
||||
varying float lmcoord;
|
||||
|
||||
uniform sampler2D texture;
|
||||
|
||||
void main() {
|
||||
|
||||
vec4 tex = texture2D(texture, texcoord.xy)*color;
|
||||
|
||||
gl_FragData[0] = vec4(vec3(1.0,lmcoord,1.0),tex.a*length(tex.rgb)/1.732); //render weather infront of transparency
|
||||
gl_FragData[1] = vec4(vec3(1.0,lmcoord,1.0),tex.a*length(tex.rgb)/1.732); //render weather for everything else
|
||||
}
|
||||
Reference in New Issue
Block a user