Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_materials.c
| Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | if (ima->source == IMA_SRC_TILED) { | ||||
| tex_tile_data = GPU_texture_from_blender(ima, iuser, NULL, GL_TEXTURE_1D_ARRAY); | tex_tile_data = GPU_texture_from_blender(ima, iuser, NULL, GL_TEXTURE_1D_ARRAY); | ||||
| } | } | ||||
| else { | else { | ||||
| tex = GPU_texture_from_blender(ima, iuser, NULL, GL_TEXTURE_2D); | tex = GPU_texture_from_blender(ima, iuser, NULL, GL_TEXTURE_2D); | ||||
| } | } | ||||
| } | } | ||||
| if (tex == NULL) { | if (tex == NULL) { | ||||
| printf("Image not found\n"); | |||||
| tex = wpd->dummy_image_tx; | tex = wpd->dummy_image_tx; | ||||
| } | } | ||||
| const bool infront = (ob->dtx & OB_DRAWXRAY) != 0; | const bool infront = (ob->dtx & OB_DRAWXRAY) != 0; | ||||
| const bool transp = wpd->shading.xray_alpha < 1.0f; | const bool transp = wpd->shading.xray_alpha < 1.0f; | ||||
| WORKBENCH_Prepass *prepass = &wpd->prepass[transp][infront][hair]; | WORKBENCH_Prepass *prepass = &wpd->prepass[transp][infront][hair]; | ||||
| DRWShadingGroup **grp_tex = NULL; | DRWShadingGroup **grp_tex = NULL; | ||||
| Show All 19 Lines | |||||