mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
2007-11-21 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gles/cogl.c: (cogl_fog_set): Minor fixes for fog on GLES.
This commit is contained in:
parent
99acb8e9c1
commit
24d43aee02
@ -1,3 +1,8 @@
|
|||||||
|
2007-11-21 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/cogl/gles/cogl.c: (cogl_fog_set):
|
||||||
|
Minor fixes for fog on GLES.
|
||||||
|
|
||||||
2007-11-21 Emmanuele Bassi <ebassi@openedhand.com>
|
2007-11-21 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/cogl/cogl.h: Add cogl_fog_set() abstracting the
|
* clutter/cogl/cogl.h: Add cogl_fog_set() abstracting the
|
||||||
|
@ -623,10 +623,10 @@ cogl_fog_set (const ClutterColor *fog_color,
|
|||||||
|
|
||||||
glFogxv (GL_FOG_COLOR, fogColor);
|
glFogxv (GL_FOG_COLOR, fogColor);
|
||||||
|
|
||||||
glFogi (GL_FOG_MODE, GL_LINEAR);
|
glFogx (GL_FOG_MODE, GL_LINEAR);
|
||||||
glHint (GL_FOG_HINT, GL_NICEST);
|
glHint (GL_FOG_HINT, GL_NICEST);
|
||||||
|
|
||||||
glFogx (GL_FOG_DENSITY, (GLfixed) density);
|
glFogx (GL_FOG_DENSITY, (GLfixed) density);
|
||||||
glFogx (GL_FOG_START, (GLfixed) z_near);
|
glFogx (GL_FOG_START, (GLfixed) z_near);
|
||||||
glFogx (GL_FOG_STOP, (GLfixed) z_far);
|
glFogx (GL_FOG_END, (GLfixed) z_far);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user