diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-07 18:48:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-07 18:48:29 +0400 |
commit | cf4f00b2fa6dfecc400519a635c41798bf45ca88 (patch) | |
tree | 342967b2b2a1254a23aca3c8e0ae22a7009e86f2 /source/blender/nodes/intern/TEX_util.h | |
parent | 17c083a38f3a5269a3224b632f0bc129d831dc5d (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.h | 5 |
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); |