Revert "Use some realist order of magnitude of light"
This reverts commit 2aa6676050c3142b634f2e6063fdfa76435befe5.
This commit is contained in:
parent
b8d5719a82
commit
d4718df127
@ -42,6 +42,6 @@ void main(void)
|
|||||||
float g = dot(extendednormal, gmat * extendednormal);
|
float g = dot(extendednormal, gmat * extendednormal);
|
||||||
float b = dot(extendednormal, bmat * extendednormal);
|
float b = dot(extendednormal, bmat * extendednormal);
|
||||||
|
|
||||||
Diff = 200. * max(0.25 * vec4(r, g, b, .1), vec4(0.));
|
Diff = max(0.25 * vec4(r, g, b, .1), vec4(0.));
|
||||||
Spec = vec4(0.);
|
Spec = vec4(0.);
|
||||||
}
|
}
|
||||||
|
@ -25,5 +25,5 @@ void main(void)
|
|||||||
vec4 tmp = (InverseViewMatrix * InverseProjectionMatrix * vec4(eyedir, 1.));
|
vec4 tmp = (InverseViewMatrix * InverseProjectionMatrix * vec4(eyedir, 1.));
|
||||||
eyedir = tmp.xyz / tmp.w;
|
eyedir = tmp.xyz / tmp.w;
|
||||||
vec4 color = texture(tex, eyedir);
|
vec4 color = texture(tex, eyedir);
|
||||||
FragColor = 1200. * vec4(color.xyz, 1.);
|
FragColor = vec4(color.xyz, 1.);
|
||||||
}
|
}
|
||||||
|
@ -120,8 +120,8 @@ void main() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
factor = 1.;
|
factor = 1.;
|
||||||
Diff = vec4(1200. * factor * NdotL * col, 1.);
|
Diff = vec4(factor * NdotL * col, 1.);
|
||||||
Spec = vec4(1200. * factor * Specular, 1.);
|
Spec = vec4(factor * Specular, 1.);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// float moved = (abs(dx) + abs(dy)) * 0.5;
|
// float moved = (abs(dx) + abs(dy)) * 0.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user