master
RealBadAngel 2015-11-24 22:14:54 +01:00
parent ccc53cf5f7
commit a3c71430d5
2 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ void main(void)
//T2= uv;
vec2 eyeRay = vec2 (tsEyeVec.x, tsEyeVec.y);
vec2 ds = eyeRay * 0.08;
vec2 ds = eyeRay * 0.10;
float dist = find_intersection(T2, ds);
T2 += dist * ds;
T1 += dist * ds;

View File

@ -81,9 +81,9 @@ void main(void)
worldPosition = (mWorld * gl_Vertex).xyz;
vec3 sunPosition = vec3 (0.0, eyePosition.y * BS + 900.0, 0.0);
normal = normalize(gl_Normal);
tangent = normalize(gl_MultiTexCoord1.xyz);
binormal = normalize(gl_MultiTexCoord2.xyz);
normal = normalize(gl_NormalMatrix * gl_Normal);
tangent = normalize(gl_NormalMatrix * gl_MultiTexCoord1.xyz);
binormal = normalize(gl_NormalMatrix * gl_MultiTexCoord2.xyz);
vec3 v;