diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-26 16:59:47 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-26 16:59:47 +0300 |
commit | fe41c1ec0b79b2be22f7bc14c92ce94737f91800 (patch) | |
tree | 556bfb46b0bcb8a86279935ba2f48af9ebedda92 /source/blender/draw | |
parent | 28a16c4374df1bdca7e7bce3f4353dae088ab1bf (diff) |
EEVEE: Fix crash on certain drivers caused by redefined constant
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/default_world_frag.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl index 1faa02fd354..8c876cf582c 100644 --- a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl @@ -12,7 +12,9 @@ uniform float studioLightIntensity = 1.0; uniform float studioLightBlur = 0.0; in vec3 viewPosition; -# define M_PI 3.14159265358979323846 +# ifndef M_PI +# define M_PI 3.14159265358979323846 +# endif vec3 background_transform_to_world(vec3 viewvec) { |