diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-04 17:50:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-04 17:50:22 +0300 |
commit | 819b8adb94f5ab617a0b2bcac37678eb4874dfbd (patch) | |
tree | c332ee04fd4431fe4c7ac7f5baf53bf8b363eb07 /source/blender/draw/engines/eevee/eevee_private.h | |
parent | 28b597b6df46b6d2581d7948578922bb3566d242 (diff) |
Eevee: Move Spherical Harmonics to a new Probe UBO.
Keep data packing tight to prevent use of padding floats
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_private.h')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index 3e4547e76ac..0d5ab592563 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -167,6 +167,7 @@ enum { /* ************ PROBE UBO ************* */ typedef struct EEVEE_Probe { float position[3], dist; + float shcoefs[9][3], pad; } EEVEE_Probe; /* ************ PROBE DATA ************* */ @@ -185,7 +186,6 @@ typedef struct EEVEE_ProbesInfo { float lodmax; int shres; int shnbr; - float shcoefs[9][3]; /* Temp */ struct GPUTexture *backgroundtex; /* List of probes in the scene. */ /* XXX This is fragile, can get out of sync quickly. */ |