Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Szepe <HG1_public@gmx.net>2015-03-24 00:32:49 +0300
committerThomas Szepe <HG1_public@gmx.net>2015-03-24 00:32:49 +0300
commitc73693d4a5c9b286333a90dd0fc6fd8a7e6ea753 (patch)
treed7a64433a1acf92a36bb0e064e18b72a729361ca /source/blender/gpu/GPU_material.h
parentda5fb82a63ea95f75e42092bee60027d3706c9ce (diff)
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
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r--source/blender/gpu/GPU_material.h14
1 files changed, 14 insertions, 0 deletions
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