1
0
Fork 0

Preserve film grain aspect ratio

This commit is contained in:
Frederic Bouvier 2012-08-06 00:17:31 +02:00 committed by Vivian Meazza
parent 5862ada5f0
commit ddfe61e323

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 );