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



View Profile 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


View Profile
« Reply #1 on: May 05, 2008, 12:12:40 PM »

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


View Profile
« Reply #2 on: July 01, 2008, 10:54:43 AM »

wow cool hope I can do that too , I will practice that
Logged

Pages: [1]
  Print  
 
Jump to: