Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/object.cpp
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | NODE_DEFINE(Object) | ||||
| SOCKET_BOOLEAN(is_caustics_receiver, "Receive Shadow Caustics", false); | SOCKET_BOOLEAN(is_caustics_receiver, "Receive Shadow Caustics", false); | ||||
| SOCKET_NODE(particle_system, "Particle System", ParticleSystem::get_node_type()); | SOCKET_NODE(particle_system, "Particle System", ParticleSystem::get_node_type()); | ||||
| SOCKET_INT(particle_index, "Particle Index", 0); | SOCKET_INT(particle_index, "Particle Index", 0); | ||||
| SOCKET_FLOAT(ao_distance, "AO Distance", 0.0f); | SOCKET_FLOAT(ao_distance, "AO Distance", 0.0f); | ||||
| SOCKET_STRING(lightgroup, "Light Group", ustring()); | SOCKET_STRING(lightgroup, "Light Group", ustring()); | ||||
| SOCKET_STRING(lpe_tag, "Light Path Expression Tag", ustring()); | |||||
| return type; | return type; | ||||
| } | } | ||||
| Object::Object() : Node(get_node_type()) | Object::Object() : Node(get_node_type()) | ||||
| { | { | ||||
| particle_system = NULL; | particle_system = NULL; | ||||
| particle_index = 0; | particle_index = 0; | ||||
| ▲ Show 20 Lines • Show All 411 Lines • ▼ Show 20 Lines | void ObjectManager::device_update_object_transform(UpdateObjectTransformState *state, | ||||
| kobject.shadow_terminator_shading_offset = 1.0f / | kobject.shadow_terminator_shading_offset = 1.0f / | ||||
| (1.0f - 0.5f * ob->shadow_terminator_shading_offset); | (1.0f - 0.5f * ob->shadow_terminator_shading_offset); | ||||
| kobject.shadow_terminator_geometry_offset = ob->shadow_terminator_geometry_offset; | kobject.shadow_terminator_geometry_offset = ob->shadow_terminator_geometry_offset; | ||||
| kobject.visibility = ob->visibility_for_tracing(); | kobject.visibility = ob->visibility_for_tracing(); | ||||
| kobject.primitive_type = geom->primitive_type(); | kobject.primitive_type = geom->primitive_type(); | ||||
| kobject.lpe_tag_index = state->scene->light_manager->get_lpe_tag_index(ob->get_lpe_tag()); | |||||
| /* Object shadow caustics flag */ | /* Object shadow caustics flag */ | ||||
| if (ob->is_caustics_caster) { | if (ob->is_caustics_caster) { | ||||
| flag |= SD_OBJECT_CAUSTICS_CASTER; | flag |= SD_OBJECT_CAUSTICS_CASTER; | ||||
| } | } | ||||
| if (ob->is_caustics_receiver) { | if (ob->is_caustics_receiver) { | ||||
| flag |= SD_OBJECT_CAUSTICS_RECEIVER; | flag |= SD_OBJECT_CAUSTICS_RECEIVER; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 504 Lines • Show Last 20 Lines | |||||