diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-04-25 19:46:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-04-25 19:47:20 +0300 |
commit | 041a50291b73b727fdf8bc3192de2917e8563ce0 (patch) | |
tree | 4a01f82c9241b3fa3037ccdaac113d4a86be447e /source/blender/draw/engines/eevee/eevee_private.h | |
parent | 00f5c621a65b6bc9847776b2542588835fb4054c (diff) |
Eevee: Make default shaders works.
- Added New Batch cache routine to get the split mesh for each material. (optimization needed)
- Did some shader modifications to create default_frag and support a somwhat correct fresnel for lamps (to finish)
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_private.h')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index 48c991aecf9..02dc32ddd9a 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -45,7 +45,8 @@ typedef struct EEVEE_PassList { struct DRWPass *depth_pass; struct DRWPass *depth_pass_cull; - struct DRWPass *pass; + struct DRWPass *default_pass; + struct DRWPass *material_pass; struct DRWPass *tonemap; } EEVEE_PassList; @@ -174,6 +175,7 @@ typedef struct EEVEE_LampEngineData { typedef struct g_data{ struct DRWShadingGroup *default_lit_grp; + struct DRWShadingGroup *material_lit_grp; struct DRWShadingGroup *shadow_shgrp; struct DRWShadingGroup *depth_shgrp; struct DRWShadingGroup *depth_shgrp_cull; |