Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_material.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | #endif | ||||
| add_user_list(&mat->lamps, lamp); | add_user_list(&mat->lamps, lamp); | ||||
| } | } | ||||
| static void material_lights(GPUShadeInput *shi, GPUShadeResult *shr) | static void material_lights(GPUShadeInput *shi, GPUShadeResult *shr) | ||||
| { | { | ||||
| Base *base; | Base *base; | ||||
| Scene *sce_iter; | Scene *sce_iter; | ||||
| for (SETLOOPER(shi->gpumat->scene, sce_iter, base)) { | for (SETLOOPER(shi->gpumat->scene, NULL, sce_iter, base)) { | ||||
| Object *ob = base->object; | Object *ob = base->object; | ||||
| if (ob->type == OB_LAMP) { | if (ob->type == OB_LAMP) { | ||||
| GPULamp *lamp = GPU_lamp_from_blender(shi->gpumat->scene, ob, NULL); | GPULamp *lamp = GPU_lamp_from_blender(shi->gpumat->scene, ob, NULL); | ||||
| if (lamp) | if (lamp) | ||||
| shade_one_light(shi, shr, lamp); | shade_one_light(shi, shr, lamp); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,548 Lines • Show Last 20 Lines | |||||