diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-28 14:39:21 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-28 14:39:21 +0400 |
commit | 755f0183240527e9b274ce4f80f1cf1d7e414164 (patch) | |
tree | db8472ce0ba4b4372ad1d3b907edf58c0b674164 /intern/cycles/kernel/kernel_types.h | |
parent | 1e5424564c0c01d0772641f3896ffaa1a2616e2b (diff) |
Cycles: shadow pass support. Note that this only takes into account lamps,
emitting objects or world lighting do not contribute to the shadow pass.
Consider this more as a pass useful for some compositing tricks, unlike
other lighting passes this pass can't be used to exactly reconstruct the
combined pass.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index c198ee1d24e..453d5c826e6 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -175,7 +175,8 @@ typedef enum PassType { PASS_TRANSMISSION_DIRECT = 32768, PASS_EMISSION = 65536, PASS_BACKGROUND = 131072, - PASS_AO = 262144 + PASS_AO = 262144, + PASS_SHADOW = 524288 } PassType; #define PASS_ALL (~0) @@ -206,6 +207,8 @@ typedef struct PathRadiance { float3 indirect_diffuse; float3 indirect_glossy; float3 indirect_transmission; + + float4 shadow; } PathRadiance; typedef struct BsdfEval { @@ -464,7 +467,7 @@ typedef struct KernelFilm { int pass_emission; int pass_background; int pass_ao; - int pass_pad2; + int pass_shadow; } KernelFilm; typedef struct KernelBackground { |