Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/drawobject.c
| Show First 20 Lines • Show All 1,120 Lines • ▼ Show 20 Lines | |||||
| static void draw_transp_spot_volume(Lamp *la, float x, float z) | static void draw_transp_spot_volume(Lamp *la, float x, float z) | ||||
| { | { | ||||
| glEnable(GL_CULL_FACE); | glEnable(GL_CULL_FACE); | ||||
| glEnable(GL_BLEND); | glEnable(GL_BLEND); | ||||
| glDepthMask(0); | glDepthMask(0); | ||||
| /* draw backside darkening */ | /* draw backside darkening */ | ||||
| glFrontFace(GL_CCW); | |||||
| glCullFace(GL_FRONT); | glCullFace(GL_FRONT); | ||||
| glBlendFunc(GL_ZERO, GL_SRC_ALPHA); | glBlendFunc(GL_ZERO, GL_SRC_ALPHA); | ||||
| glColor4f(0.0f, 0.0f, 0.0f, 0.4f); | glColor4f(0.0f, 0.0f, 0.0f, 0.4f); | ||||
| draw_spot_cone(la, x, z); | draw_spot_cone(la, x, z); | ||||
| /* draw front side lighting */ | /* draw front side lighting */ | ||||
| ▲ Show 20 Lines • Show All 7,207 Lines • Show Last 20 Lines | |||||