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:
authorIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-04-27 20:08:10 +0400
committerIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-04-27 20:20:36 +0400
commit1973b17fce65a4dfececb45b19abec37898c1ab5 (patch)
tree36f730d98d31f4fb993bcfca57f6e8af36a48dcc /source/blender/gpu/GPU_material.h
parenta2489e29f6233b407c577a7bbf6400a9b160117d (diff)
View3D: Tweak GLSL preview, use only lamps enabled in active render layer and material light group.
This change makes lighting in GLSL preview more accurate, though it still doesn't support material's "Exclusive" option. Technical note: Changes in view3d_draw.c are not essential, these avoid preparing unused shadow buffers. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D457
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r--source/blender/gpu/GPU_material.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h
index bc410cb8369..1011ac80901 100644
--- a/source/blender/gpu/GPU_material.h
+++ b/source/blender/gpu/GPU_material.h
@@ -47,6 +47,7 @@ struct Image;
struct bNode;
struct LinkNode;
struct Scene;
+struct SceneRenderLayer;
struct GPUVertexAttribs;
struct GPUNode;
struct GPUNodeLink;
@@ -135,6 +136,7 @@ void GPU_material_free(struct Material *ma);
void GPU_materials_free(void);
+bool GPU_lamp_override_visible(GPULamp *lamp, struct SceneRenderLayer *srl, struct Material *ma);
void GPU_material_bind(GPUMaterial *material, int oblay, int viewlay, double time, int mipmap, float viewmat[4][4], float viewinv[4][4]);
void GPU_material_bind_uniforms(GPUMaterial *material, float obmat[4][4], float obcol[4], float autobumpscale);
void GPU_material_unbind(GPUMaterial *material);