oZone3D.Net Forums
September 02, 2010, 08:36:37 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Corsair AX1200 PSU And Two Highly Stressed GTX 480 in SLI (FurMark and EVGA OC Scanner)
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: [TUTO] GLSL Fog Tutorial  (Read 7066 times)
0 Members and 1 Guest are viewing this topic.
JeGX
Global Moderator
Capo Crimine
*****
Posts: 2160



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!