Eevee Shaders: Fix "No matching overloaded function"
authorGermano <germano.costa@ig.com.br>
Mon, 26 Mar 2018 22:11:02 +0000 (19:11 -0300)
committerGermano <germano.costa@ig.com.br>
Mon, 26 Mar 2018 22:11:02 +0000 (19:11 -0300)
invert -> inverse

source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl

index 1fba69ffa51913640529cfeb747ca69e2e8b84c9..77c873c15030a69d2855f6d5f9cd3dfc318725c2 100644 (file)
@@ -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