Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_types.h
| Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | |||||
| typedef struct ShaderClosure { | typedef struct ShaderClosure { | ||||
| ClosureType type; | ClosureType type; | ||||
| float3 weight; | float3 weight; | ||||
| float sample_weight; | float sample_weight; | ||||
| float data0; | float data0; | ||||
| float data1; | float data1; | ||||
| float data2; | |||||
| float3 N; | float3 N; | ||||
| #if defined(__ANISOTROPIC__) || defined(__SUBSURFACE__) || defined(__HAIR__) | #if defined(__ANISOTROPIC__) || defined(__SUBSURFACE__) || defined(__HAIR__) | ||||
| float3 T; | float3 T; | ||||
| #endif | #endif | ||||
| #ifdef __HAIR__ | |||||
| float offset; | |||||
| #endif | |||||
| #ifdef __OSL__ | #ifdef __OSL__ | ||||
| void *prim; | void *prim; | ||||
| #endif | #endif | ||||
| } ShaderClosure; | } ShaderClosure; | ||||
| /* Shader Context | /* Shader Context | ||||
| * | * | ||||
| * For OSL we recycle a fixed number of contexts for speed */ | * For OSL we recycle a fixed number of contexts for speed */ | ||||
| ▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines | |||||