Cycles:
* Increase the maximum amount of closures per shader from 16 to 64, so more complex closure trees can be rendered. I measured performance on CPU and GPU (Geforce 540M) and couldn't find a performance impact, but if someone encounters a noticeable impact on his system, please report.
This commit is contained in:
parent
6c5a4aedc2
commit
5ce3588c6c
@ -46,7 +46,7 @@ class Progress;
|
||||
|
||||
struct PackedBVH {
|
||||
/* BVH nodes storage, one node is 4x int4, and contains two bounding boxes,
|
||||
* and child, triangle or object indexes dependening on the node type */
|
||||
* and child, triangle or object indexes depending on the node type */
|
||||
array<int4> nodes;
|
||||
/* object index to BVH node index mapping for instances */
|
||||
array<int> object_node;
|
||||
|
@ -436,7 +436,7 @@ typedef enum AttributeStandard {
|
||||
|
||||
/* Closure data */
|
||||
|
||||
#define MAX_CLOSURE 16
|
||||
#define MAX_CLOSURE 64
|
||||
|
||||
typedef struct ShaderClosure {
|
||||
ClosureType type;
|
||||
|
Loading…
Reference in New Issue
Block a user