oZone3D.Net Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
ShaderToyMark 0.3.0
Home
Help
Login
Register
oZone3D.Net Forums
»
Site Forums
»
oZone3D.Net News
»
[TUTO] GLSL Fog Tutorial
« previous
next »
Print
Pages: [
1
]
Author
Topic: [TUTO] GLSL Fog Tutorial (Read 8952 times)
0 Members and 1 Guest are viewing this topic.
JeGX
Global Moderator
Capo Crimine
Posts: 2343
[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/
Logged
Don't Play, Code or Die!
JeGX @ Twitter
|
Geeks3D - 3D Tech News and Programming
|
GeeXLab - XML / Lua / Python / GLSL / PhysX
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 ??
Logged
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
Logged
Print
Pages: [
1
]
« previous
next »
oZone3D.Net Forums
»
Site Forums
»
oZone3D.Net News
»
[TUTO] GLSL Fog Tutorial