Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/drawmesh.c
| Show First 20 Lines • Show All 434 Lines • ▼ Show 20 Lines | static void draw_textured_begin(Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob) | ||||
| else { | else { | ||||
| /* draw with lights in the scene otherwise */ | /* draw with lights in the scene otherwise */ | ||||
| solidtex = false; | solidtex = false; | ||||
| if (v3d->flag2 & V3D_SHADELESS_TEX) { | if (v3d->flag2 & V3D_SHADELESS_TEX) { | ||||
| Gtexdraw.is_lit = 0; | Gtexdraw.is_lit = 0; | ||||
| } | } | ||||
| else { | else { | ||||
| Gtexdraw.is_lit = GPU_scene_object_lights( | Gtexdraw.is_lit = GPU_scene_object_lights( | ||||
| scene, ob, v3d->localvd ? v3d->localvd->lay : v3d->lay, | scene, ob, &v3d->localviewd ? &v3d->localviewd->info : NULL, | ||||
| rv3d->viewmat, !rv3d->is_persp); | v3d->lay, rv3d->viewmat, !rv3d->is_persp); | ||||
| } | } | ||||
| } | } | ||||
| rgba_float_to_uchar(obcol, ob->col); | rgba_float_to_uchar(obcol, ob->col); | ||||
| if (solidtex || v3d->drawtype == OB_TEXTURE) is_tex = true; | if (solidtex || v3d->drawtype == OB_TEXTURE) is_tex = true; | ||||
| else is_tex = false; | else is_tex = false; | ||||
| ▲ Show 20 Lines • Show All 934 Lines • Show Last 20 Lines | |||||