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:
authorMitchell Stokes <mogurijin@gmail.com>2015-05-12 09:05:04 +0300
committerMitchell Stokes <mogurijin@gmail.com>2015-05-12 09:05:04 +0300
commit8478c71a7b8f75dcf4855747347ba53639e6aac3 (patch)
treef86f474911c55a050bfe73da8acdd5d83bd16685 /source/blender/gpu/GPU_material.h
parentce504cffad49da80aff5b18d0f59d42998e3a9f7 (diff)
BGE: Adding material IPO support to GLSL materials
Most of this patch was created by Daniel Stokes, I'm mostly just cleaning it up and testing it. Still todo: hardness. I need to figure out how to handle the integer -> float conversion on a dynamic uniform. Reviewers: psy-fi, brecht Reviewed By: psy-fi Subscribers: psy-fi Differential Revision: https://developer.blender.org/D511
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r--source/blender/gpu/GPU_material.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h
index 7bb044a1ae3..1fb2518c07c 100644
--- a/source/blender/gpu/GPU_material.h
+++ b/source/blender/gpu/GPU_material.h
@@ -154,6 +154,14 @@ typedef enum GPUDynamicType {
GPU_DYNAMIC_MIST_COLOR = 26,
GPU_DYNAMIC_HORIZON_COLOR = 27,
GPU_DYNAMIC_AMBIENT_COLOR = 28,
+ GPU_DYNAMIC_MAT_DIFFRGB = 29,
+ GPU_DYNAMIC_MAT_REF = 30,
+ GPU_DYNAMIC_MAT_SPECRGB = 31,
+ GPU_DYNAMIC_MAT_SPEC = 32,
+ GPU_DYNAMIC_MAT_HARD = 33,
+ GPU_DYNAMIC_MAT_EMIT = 34,
+ GPU_DYNAMIC_MAT_AMB = 35,
+ GPU_DYNAMIC_MAT_ALPHA = 36,
} GPUDynamicType;
GPUNodeLink *GPU_attribute(CustomDataType type, const char *name);