[Bf-blender-cvs] [90e16b8e032] blender2.8: Eevee: Fix world probe with world without nodetree.
Clément Foucault
noreply at git.blender.org
Thu Jun 29 17:32:17 CEST 2017
Commit: 90e16b8e032d4af7bbb5256610a9917e8496bdd9
Author: Clément Foucault
Date: Thu Jun 29 17:32:13 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB90e16b8e032d4af7bbb5256610a9917e8496bdd9
Eevee: Fix world probe with world without nodetree.
===================================================================
M source/blender/draw/engines/eevee/eevee_lightprobes.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 01f0db4bc41..9622a5fa7fb 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -71,6 +71,7 @@ static struct {
bool world_ready_to_shade;
} e_data = {NULL}; /* Engine data */
+extern char datatoc_background_vert_glsl[];
extern char datatoc_default_world_frag_glsl[];
extern char datatoc_fullscreen_vert_glsl[];
extern char datatoc_lightprobe_filter_glossy_frag_glsl[];
@@ -191,7 +192,7 @@ void EEVEE_lightprobes_init(EEVEE_SceneLayerData *sldata, EEVEE_Data *UNUSED(ved
"#define NOISE_SIZE 64\n");
e_data.probe_default_sh = DRW_shader_create(
- datatoc_lightprobe_vert_glsl, datatoc_lightprobe_geom_glsl, datatoc_default_world_frag_glsl, NULL);
+ datatoc_background_vert_glsl, NULL, datatoc_default_world_frag_glsl, NULL);
MEM_freeN(shader_str);
@@ -361,7 +362,7 @@ void EEVEE_lightprobes_cache_init(EEVEE_SceneLayerData *sldata, EEVEE_Data *veda
/* Fallback if shader fails or if not using nodetree. */
if (grp == NULL) {
- grp = DRW_shgroup_instance_create(e_data.probe_default_sh, psl->probe_background, geom);
+ grp = DRW_shgroup_create(e_data.probe_default_sh, psl->probe_background);
DRW_shgroup_uniform_vec3(grp, "color", col, 1);
DRW_shgroup_call_add(grp, geom, NULL);
}
More information about the Bf-blender-cvs
mailing list