Preserve film grain aspect ratio
This commit is contained in:
parent
15e0e0d7c7
commit
9eb117d60c
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue