1
0
Fork 0

Preserve film grain aspect ratio

This commit is contained in:
Frederic Bouvier 2012-08-06 00:17:31 +02:00
parent 15e0e0d7c7
commit 9eb117d60c

View file

@ -59,7 +59,7 @@ void main() {
vec3 dirt = vec3(1.0);
if (filmWear) {
dirt = texture2D(film_tex, initialCoords + vec2(0.0, osg_SimulationTime * 7.7)).rgb;
dirt = texture2D(film_tex, initialCoords*vec2( 1.0, fg_BufferSize.y / fg_BufferSize.x ) + vec2(0.0, osg_SimulationTime * 7.7)).rgb;
}
vec4 color = texture2D( lighting_tex, c1 );