mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-18 23:21:37 +00:00
OpenGL2: Forgot a multiply.
This commit is contained in:
parent
f9c72eee69
commit
08ecc3a80a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue