git-svn-id: svn://db.shs.com.ru/libs@48 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,30 +1,36 @@
|
||||
#version 150
|
||||
|
||||
out vec3 src_normal, normal;//, et;
|
||||
out vec4 pos;
|
||||
out vec4 pos, ppos;
|
||||
out float fogCoord, fs_gid;
|
||||
out mat3 TBN;
|
||||
|
||||
uniform bool acc_fog;
|
||||
uniform vec2 dt;
|
||||
uniform vec3 eye;
|
||||
uniform mat4 prev_ModelViewProjectioMatrix;
|
||||
|
||||
void main(void) {
|
||||
normal = qgl_Normal;//(qgl_NormalMatrix * qgl_Normal);
|
||||
pos.xyzw = vec4(qgl_ModelViewMatrix * qgl_Vertex);
|
||||
TBN = (mat3(qgl_Tangent, qgl_Bitangent, qgl_Normal));
|
||||
pos = qgl_ftransform();
|
||||
TBN = mat3(qgl_Tangent, qgl_Bitangent, qgl_Normal);
|
||||
/*if (acc_fog) {
|
||||
fogCoord = (gl_Fog.end - length(pos.xyz) * 0.85) / (gl_Fog.end - gl_Fog.start);
|
||||
fogCoord = 1. - clamp(fogCoord, 0., 1.);
|
||||
}*/
|
||||
//gl_TexCoord[0] = gl_MultiTexCoord0;
|
||||
//gl_TexCoord[1] = gl_MultiTexCoord1;
|
||||
|
||||
src_normal = normalize(vec3(pos.xy * dt * 2., 0));
|
||||
|
||||
qgl_FragTexture = qgl_Texture;
|
||||
qgl_FragColor = qgl_Color;
|
||||
vec4 tp = qgl_ftransform();
|
||||
//tp /= tp.w;
|
||||
src_normal = normalize(vec3(pos.xy * dt * 2., 0));
|
||||
pos.w = tp.w;
|
||||
ppos = prev_ModelViewProjectioMatrix * qgl_Vertex;
|
||||
//pos.w = pos.w;
|
||||
//speed = tp - ppos;
|
||||
//speed /= (abs(speed) + 1.);
|
||||
//speed.xyz *= speed.w;
|
||||
//pos *= pos.w;
|
||||
gl_Position = tp;//ftransform();
|
||||
gl_Position = pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user