Author Topic: [TUTO] GLSL Fog Tutorial  (Read 15726 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Capo Crimine
  • *****
  • Posts: 2385
    • oZone3D.Net
[TUTO] GLSL Fog Tutorial
« on: December 28, 2007, 09:24:45 AM »
Here is a tutorial that shows how to implement fog in OpenGL Shading Language. Fog equations are explained and per-vertex and per-pixel fog GLSL shaders are detailed. Several simple demos using Demoniak3D are provided to illustrate all concepts.



LINK: http://www.ozone3d.net/tutorials/glsl_fog/

Bonanza

  • Associate
  • Posts: 1
Re: [TUTO] GLSL Fog Tutorial
« Reply #1 on: May 05, 2008, 11:12:40 AM »
Hi,
cool Stuff, but what means this:
float z = gl_FragCoord.z / gl_FragCoord.w;
is gl_FragCoord.w not always 1.0 ??


ailema

  • Associate
  • Posts: 3
Re: [TUTO] GLSL Fog Tutorial
« Reply #2 on: July 01, 2008, 09:54:43 AM »
wow cool hope I can do that too , I will practice that