[Bf-blender-cvs] [8c584dcb653] blender2.8: Eevee: fix core profile.

Clément Foucault noreply at git.blender.org
Tue Apr 18 22:46:13 CEST 2017


Commit: 8c584dcb653f7675b338447c177e980fdb4ff1af
Author: Clément Foucault
Date:   Tue Apr 18 22:46:09 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB8c584dcb653f7675b338447c177e980fdb4ff1af

Eevee: fix core profile.

===================================================================

M	source/blender/draw/engines/eevee/shaders/probe_sh_frag.glsl

===================================================================

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




More information about the Bf-blender-cvs mailing list