Message ID | 20121221195612.28689.99907.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'data/shaders/light-refract.frag' --- data/shaders/light-refract.frag 2012-12-14 00:06:17 +0000 +++ data/shaders/light-refract.frag 2012-12-21 19:54:32 +0000 @@ -29,7 +29,7 @@ // object. vec2 normcoord = back_position.st * point_five + point_five; vec3 back_normal = texture2D(NormalMap, normcoord).xyz; - vec3 back_refraction = refract(back_position, back_normal, 1.0); + vec3 back_refraction = refract(back_position, back_normal, 1.0/RefractiveIndex); // Use the transmitted vector from the exit point to determine where // the vector would intersect the environment (in this case a background // image.