Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_draw.c
| Context not available. | |||||
| // glDisable(GL_MULTISAMPLE); | // glDisable(GL_MULTISAMPLE); | ||||
| } | } | ||||
| /* set mist values*/ | |||||
| void GPU_set_fog(short misttype, float start, float dist, float intensity, float color[3]) | |||||
| { | |||||
| float params[4] = {color[0], color[1], color[2], 0.0}; | |||||
| glFogi(GL_FOG_MODE, GL_LINEAR); | |||||
| glFogf(GL_FOG_DENSITY, intensity); | |||||
| glFogf(GL_FOG_START, start); | |||||
| glFogf(GL_FOG_END, start + dist); | |||||
| glFogfv(GL_FOG_COLOR, params); | |||||
| } | |||||
| #ifdef DEBUG | #ifdef DEBUG | ||||
| /* debugging aid */ | /* debugging aid */ | ||||
| static void gpu_state_print_fl_ex(const char *name, GLenum type) | static void gpu_state_print_fl_ex(const char *name, GLenum type) | ||||
| Context not available. | |||||