add v1.541 (Extreme)
This commit is contained in:
28
shaders/gbuffers_weather.vsh
Normal file
28
shaders/gbuffers_weather.vsh
Normal file
@@ -0,0 +1,28 @@
|
||||
#version 120
|
||||
|
||||
#define gbuffers_weather
|
||||
#include "shaders.settings"
|
||||
|
||||
varying vec4 color;
|
||||
varying vec2 texcoord;
|
||||
varying float lmcoord;
|
||||
|
||||
uniform vec3 cameraPosition;
|
||||
uniform mat4 gbufferModelViewInverse;
|
||||
uniform mat4 gbufferModelView;
|
||||
|
||||
void main() {
|
||||
|
||||
vec4 position = gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex;
|
||||
#ifdef WeatherAngle
|
||||
float worldpos = position.y + cameraPosition.y;
|
||||
bool istopv = worldpos > cameraPosition.y+5.0;
|
||||
if (!istopv) position.xz += vec2(3.0,1.0);
|
||||
#endif
|
||||
gl_Position = gl_ProjectionMatrix * gbufferModelView * position;
|
||||
|
||||
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
||||
lmcoord = (gl_TextureMatrix[1] * gl_MultiTexCoord1).s;
|
||||
color = gl_Color;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user