* 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:
Thomas Dinges 2013-07-30 09:26:45 +00:00
parent 6c5a4aedc2
commit 5ce3588c6c
2 changed files with 2 additions and 2 deletions

@ -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;