diff options
author | SmileTheory <SmileTheory@gmail.com> | 2015-12-09 03:42:12 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:13:30 +0100 |
commit | c9cf340a4eb8d81b44e8c02b167b9ab6319167fd (patch) | |
tree | 76d1eefe19a10c4d859cd0fd12c4347906b03c9f | |
parent | 6f6ca6d529e1739565dbc64891fa7f1b478b8460 (diff) |
OpenGL2: Forgot a multiply.
-rw-r--r-- | src/renderergl2/glsl/lightall_fp.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/glsl/lightall_fp.glsl b/src/renderergl2/glsl/lightall_fp.glsl index 6c8977e1..9330b1f8 100644 --- a/src/renderergl2/glsl/lightall_fp.glsl +++ b/src/renderergl2/glsl/lightall_fp.glsl @@ -382,7 +382,7 @@ void main() vec3 parallax = u_CubeMapInfo.xyz + u_CubeMapInfo.w * viewDir; #if defined(GLOSS_IS_ROUGHNESS) - vec3 cubeLightColor = textureCubeLod(u_CubeMap, R + parallax, roughness).rgb * u_EnableTextures.w; + vec3 cubeLightColor = textureCubeLod(u_CubeMap, R + parallax, 7.0 * roughness).rgb * u_EnableTextures.w; #else vec3 cubeLightColor = textureCubeLod(u_CubeMap, R + parallax, 7.0 - gloss * 7.0).rgb * u_EnableTextures.w; #endif |