diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-02-14 06:17:52 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-02-14 06:17:52 +0300 |
commit | 903cc89e3098aea5aa368a82a7fb5765df7c1b5e (patch) | |
tree | 4d665f3e4756ddced2fd4af77ea9518a63eeb5aa /source/blender/freestyle/intern/application/AppCanvas.h | |
parent | fdaa46063502cc643d282d79824f7590dc8dd7fe (diff) |
Added support for pixel-based density and Z depth information.
Availability of pixel-based density and Z depth information depends
on passes of a render layer being rendered.
- Density information is available if the diffuse pass of the render
layer is enabled. It is accessible through the DensityF0D and
DensityF1D functions provided by the Freestyle Python API. These
functions return 0 if the diffuse pass is disabled.
- Z depth information is available if the Z pass is enabled. It can
be accessed through LocalAverageDepthF0D and LocalAverageDepthF1D.
These functions return 0 if the Z pass is disabled.
Diffstat (limited to 'source/blender/freestyle/intern/application/AppCanvas.h')
-rwxr-xr-x | source/blender/freestyle/intern/application/AppCanvas.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/application/AppCanvas.h b/source/blender/freestyle/intern/application/AppCanvas.h index fa8d3cba373..7678014d4a0 100755 --- a/source/blender/freestyle/intern/application/AppCanvas.h +++ b/source/blender/freestyle/intern/application/AppCanvas.h @@ -46,6 +46,13 @@ public: /*! modifiers */ void setViewer(AppView *iViewer) ; + + // soc + void setPassDiffuse(float *p) {_pass_diffuse = p;} + void setPassZ(float *p) {_pass_z = p;} +private: + float *_pass_diffuse; + float *_pass_z; }; |