+  oZone3D.Net Forums
|-+  Site Forums» oZone3D.Net News» [TUTO] GLSL Fog Tutorial
Username:
Password:
Pages: [1]
  Print  
Author Topic: [TUTO] GLSL Fog Tutorial  (Read 6359 times)
0 Members and 1 Guest are viewing this topic.
JeGX
Global Moderator
Capo Crimine
*****
Posts: 2075



WWW
« 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/
Logged

Bonanza
Associate

Posts: 1


« 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 ??

Logged
ailema
Associate

Posts: 3


« Reply #2 on: July 01, 2008, 09:54:43 AM »

wow cool hope I can do that too , I will practice that
Logged
Pages: [1]
  Print  
 
Jump to: