diff options
author | Thomas Dinges <blender@dingto.org> | 2013-05-20 19:58:37 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-05-20 19:58:37 +0400 |
commit | 3758193c18a886faa5bb803dd378f24866e793e5 (patch) | |
tree | 9d013e4f7008845a3a2b04539396bb2e2e341888 /source/blender/makesrna | |
parent | 38dc85f296a27a5641d296c8f41834db41dac18b (diff) |
Cycles / Wireframe node:
* Added a wireframe node (Input category) to get access to Mesh wireframe data.
The thickness can be controlled via a "Size" parameter, and is available in world units (default) and screen pixel size.
* Only the triangulated mesh is available now, quads is for later.
Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Wireframe
Render and Example file:
http://www.pasteall.org/pic/show.php?id=51731
http://www.pasteall.org/blend/21510
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index a40d85ae954..308fab7e610 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -3406,6 +3406,16 @@ static void def_sh_tex_coord(StructRNA *srna) RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } +static void def_sh_tex_wireframe(StructRNA *srna) +{ + PropertyRNA *prop; + + prop = RNA_def_property(srna, "use_pixel_size", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1); + RNA_def_property_ui_text(prop, "Pixel Size", "Use screen pixel size instead of world units"); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); +} + static void def_glossy(StructRNA *srna) { PropertyRNA *prop; |