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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-07 18:48:29 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-07 18:48:29 +0400
commitcf4f00b2fa6dfecc400519a635c41798bf45ca88 (patch)
tree342967b2b2a1254a23aca3c8e0ae22a7009e86f2 /source/blender/nodes/intern/TEX_util.h
parent17c083a38f3a5269a3224b632f0bc129d831dc5d (diff)
Preview Render:
* Fixes for texture and material nodes. * Texture node previews now work more like materials.
Diffstat (limited to 'source/blender/nodes/intern/TEX_util.h')
-rw-r--r--source/blender/nodes/intern/TEX_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/TEX_util.h b/source/blender/nodes/intern/TEX_util.h
index fd3d47f4729..14e2773414a 100644
--- a/source/blender/nodes/intern/TEX_util.h
+++ b/source/blender/nodes/intern/TEX_util.h
@@ -87,6 +87,7 @@ typedef struct TexParams {
typedef void(*TexFn) (float *out, TexParams *params, bNode *node, bNodeStack **in, short thread);
typedef struct TexDelegate {
+ TexCallData *cdata;
TexFn fn;
bNode *node;
bNodeStack *in[MAX_SOCKET];
@@ -99,8 +100,8 @@ void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
void tex_input_vec(float *out, bNodeStack *in, TexParams *params, short thread);
float tex_input_value(bNodeStack *in, TexParams *params, short thread);
-void tex_output(bNode *node, bNodeStack **in, bNodeStack *out, TexFn texfn);
-void tex_do_preview(bNode *node, bNodeStack *ns, TexCallData *cdata);
+void tex_output(bNode *node, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *data);
+void tex_do_preview(bNode *node, float *coord, float *col);
void params_from_cdata(TexParams *out, TexCallData *in);