Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/osl.cpp
| Show First 20 Lines • Show All 1,090 Lines • ▼ Show 20 Lines | if(shader->need_update) { | ||||
| /* copy graph for shader with bump mapping */ | /* copy graph for shader with bump mapping */ | ||||
| if(output->input("Surface")->link && output->input("Displacement")->link) | if(output->input("Surface")->link && output->input("Displacement")->link) | ||||
| if(!shader->graph_bump) | if(!shader->graph_bump) | ||||
| shader->graph_bump = shader->graph->copy(); | shader->graph_bump = shader->graph->copy(); | ||||
| /* finalize */ | /* finalize */ | ||||
| shader->graph->finalize(scene, | shader->graph->finalize(scene, | ||||
| false, | false, | ||||
| true, | |||||
| shader->has_integrator_dependency); | shader->has_integrator_dependency); | ||||
| if(shader->graph_bump) { | if(shader->graph_bump) { | ||||
| shader->graph_bump->finalize(scene, | shader->graph_bump->finalize(scene, | ||||
| true, | true, | ||||
| true, | |||||
| shader->has_integrator_dependency, | shader->has_integrator_dependency, | ||||
| shader->displacement_method == DISPLACE_BOTH); | shader->displacement_method == DISPLACE_BOTH); | ||||
| } | } | ||||
| current_shader = shader; | current_shader = shader; | ||||
| shader->has_surface = false; | shader->has_surface = false; | ||||
| shader->has_surface_emission = false; | shader->has_surface_emission = false; | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||