diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 23:46:09 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 23:46:09 +0300 |
commit | 8c584dcb653f7675b338447c177e980fdb4ff1af (patch) | |
tree | 1bd3297191ef06848e3d7ddd7655c551da382c2c /source/blender/draw/engines | |
parent | 0610bc88a3b0e0bef3c2fba22b45fdfd233389f6 (diff) |
Eevee: fix core profile.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl b/source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl index d7dab0e085a..1bb14b76f42 100644 --- a/source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl @@ -94,7 +94,7 @@ void main() shcoef = 0.546274 * (cubevec.x * cubevec.x - cubevec.z * cubevec.z) * 1.0 / 4.0; } - vec4 sample = textureCubeLod(probeHdr, cubevec, lodBias); + vec4 sample = textureLod(probeHdr, cubevec, lodBias); sh += sample.rgb * shcoef * weight; weight_accum += weight; } @@ -103,5 +103,5 @@ void main() sh *= M_4PI / weight_accum; - gl_FragColor = vec4(sh, 1.0); + FragColor = vec4(sh, 1.0); }
\ No newline at end of file |