CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - per-pixel volumetric fog
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - per-pixel volumetric fog - List
[
Other resource
]
VolumeFog
DL : 0
The Volume Fog sample shows the per-pixel density volumetric rendering technique. The fog volume is modeled as a polygonal mesh, and the density of the fog at every pixel is computed by subtracting the front side of the fog volume from the back side. The fog is mixed with the scene by accumulating an in/out test at every pixel -- that is, back-facing fog polygons will add, while front-facing ones will subtract. If the value is non zero, then the scene intersects the fog and the scene s depth value is used. In order to get better results, this demo uses 12 bits of precision by encoding high and low bits in different color channels.
Date
: 2008-10-13
Size
: 28.25kb
User
:
姚俊光
[
3D Graphic
]
VolumeFog
DL : 0
The Volume Fog sample shows the per-pixel density volumetric rendering technique. The fog volume is modeled as a polygonal mesh, and the density of the fog at every pixel is computed by subtracting the front side of the fog volume from the back side. The fog is mixed with the scene by accumulating an in/out test at every pixel -- that is, back-facing fog polygons will add, while front-facing ones will subtract. If the value is non zero, then the scene intersects the fog and the scene s depth value is used. In order to get better results, this demo uses 12 bits of precision by encoding high and low bits in different color channels. -The Volume Fog sample shows the per-pixel density volumetric rendering technique. The fog volume is modeled as a polygonal mesh, and the density of the fog at every pixel is computed by subtracting the front side of the fog volume from the back side. The fog is mixed with the scene by accumulating an in/out test at every pixel that is, back-facing fog polygons will add, while front-facing ones will subtract. If the value is non zero, then the scene intersects the fog and the scene s depth value is used. In order to get better results, this demo uses 12 bits of precision by encoding high and low bits in different color channels.
Date
: 2025-07-12
Size
: 28kb
User
:
Phoebuson Ryao
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.