From c73693d4a5c9b286333a90dd0fc6fd8a7e6ea753 Mon Sep 17 00:00:00 2001 From: Thomas Szepe Date: Mon, 23 Mar 2015 22:32:49 +0100 Subject: BGE: Fix T43592: World GLSL This patch will fix the world GLSL (mist, background, ambient) update for the BGE. Reviewers: moguri, brecht Reviewed By: moguri, brecht Subscribers: panzergame Differential Revision: https://developer.blender.org/D151 --- source/blender/gpu/GPU_material.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/blender/gpu/GPU_material.h') diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index 2d21b1aeb1d..e27916e5bf7 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -149,6 +149,14 @@ typedef enum GPUDynamicType { GPU_DYNAMIC_LAMP_ATT2 = 18, GPU_DYNAMIC_LAMP_SPOTSIZE = 19, GPU_DYNAMIC_LAMP_SPOTBLEND = 20, + GPU_DYNAMIC_MIST_ENABLE = 21, + GPU_DYNAMIC_MIST_START = 22, + GPU_DYNAMIC_MIST_DISTANCE = 23, + GPU_DYNAMIC_MIST_INTENSITY = 24, + GPU_DYNAMIC_MIST_TYPE = 25, + GPU_DYNAMIC_MIST_COLOR = 26, + GPU_DYNAMIC_HORIZON_COLOR = 27, + GPU_DYNAMIC_AMBIENT_COLOR = 28, } GPUDynamicType; GPUNodeLink *GPU_attribute(CustomDataType type, const char *name); @@ -273,6 +281,12 @@ void GPU_lamp_update_spot(GPULamp *lamp, float spotsize, float spotblend); int GPU_lamp_shadow_layer(GPULamp *lamp); GPUNodeLink *GPU_lamp_get_data(GPUMaterial *mat, GPULamp *lamp, GPUNodeLink **col, GPUNodeLink **lv, GPUNodeLink **dist, GPUNodeLink **shadow, GPUNodeLink **energy); +/* World */ +void GPU_mist_update_enable(short enable); +void GPU_mist_update_values(int type, float start, float dist, float inten, float color[3]); +void GPU_horizon_update_color(float color[3]); +void GPU_ambient_update_color(float color[3]); + #ifdef __cplusplus } #endif -- cgit v1.2.3