List of usage examples for org.lwjgl.opengl GL11 glFogf
public static native void glFogf(@NativeType("GLenum") int pname, @NativeType("GLfloat") float param);
From source file:stevekung.mods.moreplanets.core.handler.PlanetFogHandler.java
License:Creative Commons License
private static void renderFog(int fogMode, float farPlaneDistance, float farPlaneDistanceScale) { if (fogMode < 0) { GL11.glFogf(GL11.GL_FOG_START, 0.0F); GL11.glFogf(GL11.GL_FOG_END, farPlaneDistance); } else {/* ww w . j a v a 2s.c o m*/ GL11.glFogf(GL11.GL_FOG_START, farPlaneDistance * farPlaneDistanceScale); GL11.glFogf(GL11.GL_FOG_END, farPlaneDistance); } }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glFogf(int a, float b) { GL11.glFogf(a, b); }