OpenGL2: Forgot a multiply.

This commit is contained in:
SmileTheory 2015-12-09 03:42:12 -08:00
parent f9c72eee69
commit 08ecc3a80a
1 changed files with 1 additions and 1 deletions

View File

@ -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