Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/shader.h
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | #endif | ||||
| /* Checks whether the shader consists of just a emission node with fixed inputs that's connected directly to the output. | /* Checks whether the shader consists of just a emission node with fixed inputs that's connected directly to the output. | ||||
| * If yes, it sets the content of emission to the constant value (color * strength), which is then used for speeding up light evaluation. */ | * If yes, it sets the content of emission to the constant value (color * strength), which is then used for speeding up light evaluation. */ | ||||
| bool is_constant_emission(float3* emission); | bool is_constant_emission(float3* emission); | ||||
| void set_graph(ShaderGraph *graph); | void set_graph(ShaderGraph *graph); | ||||
| void tag_update(Scene *scene); | void tag_update(Scene *scene); | ||||
| void tag_used(Scene *scene); | void tag_used(Scene *scene); | ||||
| void update_attributes(Scene *scene); | |||||
| }; | }; | ||||
| /* Shader Manager virtual base class | /* Shader Manager virtual base class | ||||
| * | * | ||||
| * From this the SVM and OSL shader managers are derived, that do the actual | * From this the SVM and OSL shader managers are derived, that do the actual | ||||
| * shader compiling and device updating. */ | * shader compiling and device updating. */ | ||||
| class ShaderManager { | class ShaderManager { | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||