Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_draw.c
| Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | static void drawviewborder(Scene *scene, Depsgraph *depsgraph, ARegion *region, View3D *v3d) | ||||
| x2i = (int)(x2 + (1.0f - 0.0001f)); | x2i = (int)(x2 + (1.0f - 0.0001f)); | ||||
| y2i = (int)(y2 + (1.0f - 0.0001f)); | y2i = (int)(y2 + (1.0f - 0.0001f)); | ||||
| uint shdr_pos = GPU_vertformat_attr_add( | uint shdr_pos = GPU_vertformat_attr_add( | ||||
| immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | ||||
| /* First, solid lines. */ | /* First, solid lines. */ | ||||
| { | { | ||||
| immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR); | ||||
| /* passepartout, specified in camera edit buttons */ | /* passepartout, specified in camera edit buttons */ | ||||
| if (ca && (ca->flag & CAM_SHOWPASSEPARTOUT) && ca->passepartalpha > 0.000001f) { | if (ca && (ca->flag & CAM_SHOWPASSEPARTOUT) && ca->passepartalpha > 0.000001f) { | ||||
| const float winx = (region->winx + 1); | const float winx = (region->winx + 1); | ||||
| const float winy = (region->winy + 1); | const float winy = (region->winy + 1); | ||||
| float alpha = 1.0f; | float alpha = 1.0f; | ||||
| ▲ Show 20 Lines • Show All 2,007 Lines • Show Last 20 Lines | |||||