diff options
author | Germano <germano.costa@ig.com.br> | 2018-03-27 01:11:02 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-03-27 01:11:02 +0300 |
commit | 17a4a5a5530fed7f7fcd9d4870d9f8c24a315680 (patch) | |
tree | 29337c43294d4e9de3381a1823915849bd897804 /source/blender | |
parent | dff7f55cd069a15493db00aef8f28f4f3be24b8f (diff) |
Eevee Shaders: Fix "No matching overloaded function"
invert -> inverse
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl index 1fba69ffa51..77c873c1503 100644 --- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl @@ -33,9 +33,9 @@ mat4(vec4(1.0, 0.0, 0.0, 0.0), \ vec4(0.0, 0.0, -(farClip + nearClip) / (farClip - nearClip), -1.0), \ vec4(0.0, 0.0, (-2.0 * farClip * nearClip) / (farClip - nearClip), 0.0)) -#define ViewMatrixInverse invert(ViewMatrix) -#define ViewProjectionMatrixInverse invert(ViewProjectionMatrix) -#define ProjectionMatrixInverse invert(ProjectionMatrix) +#define ViewMatrixInverse inverse(ViewMatrix) +#define ViewProjectionMatrixInverse inverse(ViewProjectionMatrix) +#define ProjectionMatrixInverse inverse(ProjectionMatrix) #define CameraTexCoFactors vec4(1.0f, 1.0f, 0.0f, 0.0f) #endif |