Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/integrator.cpp
| /* | /* | ||||
| * Copyright 2011-2013 Blender Foundation | * Copyright 2011-2013 Blender Foundation | ||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| * You may obtain a copy of the License at | * You may obtain a copy of the License at | ||||
| * | * | ||||
| * http://www.apache.org/licenses/LICENSE-2.0 | * http://www.apache.org/licenses/LICENSE-2.0 | ||||
| * | * | ||||
| * Unless required by applicable law or agreed to in writing, software | * Unless required by applicable law or agreed to in writing, software | ||||
| * distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | ||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "scene/integrator.h" | |||||
| #include "device/device.h" | #include "device/device.h" | ||||
| #include "scene/background.h" | #include "scene/background.h" | ||||
| #include "scene/bake.h" | |||||
| #include "scene/camera.h" | #include "scene/camera.h" | ||||
| #include "scene/film.h" | #include "scene/film.h" | ||||
| #include "scene/integrator.h" | |||||
| #include "scene/jitter.h" | #include "scene/jitter.h" | ||||
| #include "scene/light.h" | #include "scene/light.h" | ||||
| #include "scene/object.h" | #include "scene/object.h" | ||||
| #include "scene/scene.h" | #include "scene/scene.h" | ||||
| #include "scene/shader.h" | #include "scene/shader.h" | ||||
| #include "scene/sobol.h" | #include "scene/sobol.h" | ||||
| #include "scene/stats.h" | #include "scene/stats.h" | ||||
| ▲ Show 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | if (!use_glossy) { | ||||
| kintegrator->filter_closures |= FILTER_CLOSURE_GLOSSY; | kintegrator->filter_closures |= FILTER_CLOSURE_GLOSSY; | ||||
| } | } | ||||
| if (!use_transmission) { | if (!use_transmission) { | ||||
| kintegrator->filter_closures |= FILTER_CLOSURE_TRANSMISSION; | kintegrator->filter_closures |= FILTER_CLOSURE_TRANSMISSION; | ||||
| } | } | ||||
| if (!use_emission) { | if (!use_emission) { | ||||
| kintegrator->filter_closures |= FILTER_CLOSURE_EMISSION; | kintegrator->filter_closures |= FILTER_CLOSURE_EMISSION; | ||||
| } | } | ||||
| if (scene->bake_manager->get_baking()) { | |||||
| /* Baking does not need to trace through transparency, we only want to bake | |||||
| * the object itself. */ | |||||
| kintegrator->filter_closures |= FILTER_CLOSURE_TRANSPARENT; | |||||
| } | |||||
| kintegrator->seed = seed; | kintegrator->seed = seed; | ||||
| kintegrator->sample_clamp_direct = (sample_clamp_direct == 0.0f) ? FLT_MAX : | kintegrator->sample_clamp_direct = (sample_clamp_direct == 0.0f) ? FLT_MAX : | ||||
| sample_clamp_direct * 3.0f; | sample_clamp_direct * 3.0f; | ||||
| kintegrator->sample_clamp_indirect = (sample_clamp_indirect == 0.0f) ? | kintegrator->sample_clamp_indirect = (sample_clamp_indirect == 0.0f) ? | ||||
| FLT_MAX : | FLT_MAX : | ||||
| sample_clamp_indirect * 3.0f; | sample_clamp_indirect * 3.0f; | ||||
| ▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines | |||||