spirv: Fix support for FOG1
authorMartin Krošlák <kroslakma@gmail.com>
Fri, 03 Jul 2020 10:43:01 -0400
changeset 1274 dda5d1bed2c7
parent 1273 25384c31f7c5
child 1275 7fc13cff18ff
spirv: Fix support for FOG1
profiles/mojoshader_profile_spirv.c
--- a/profiles/mojoshader_profile_spirv.c	Thu Jul 02 18:08:57 2020 -0400
+++ b/profiles/mojoshader_profile_spirv.c	Fri Jul 03 10:43:01 2020 -0400
@@ -1518,7 +1518,7 @@
 #define SPV_OFFSET_NORMAL       (SPV_OFFSET_TEXCOORD + SPV_LENGTH_TEXCOORD)
 #define SPV_LENGTH_NORMAL       8 // Arbitrary!
 #define SPV_OFFSET_FOG          (SPV_OFFSET_NORMAL + SPV_LENGTH_NORMAL)
-#define SPV_LENGTH_FOG          1 // Arbitrary!
+#define SPV_LENGTH_FOG          2 // Arbitrary!
 #define SPV_OFFSET_TANGENT      (SPV_OFFSET_FOG + SPV_LENGTH_FOG)
 #define SPV_LENGTH_TANGENT      1 // Arbitrary!
 #define SPV_OFFSET_BLENDINDICES (SPV_OFFSET_TANGENT + SPV_LENGTH_TANGENT)