volumetric_fog.wgsl

Constants
Bindings
Shader defs requirments:
š¢ MULTISAMPLED
@group(1)
@binding(1)
var
depth_texture:
texture_depth_multisampled_2d
Shader defs requirments:
š“ MULTISAMPLED
@group(1)
@binding(1)
var
depth_texture:
texture_depth_2d
Shader defs requirments:
š¢ DENSITY_TEXTURE
@group(1)
@binding(2)
var
density_texture:
texture_3d<f32>
Shader defs requirments:
š¢ DENSITY_TEXTURE
Structures
struct
VolumetricFog
{
}
Functions
@vertex
Processes each 3D point in a model before it's drawn
@fragment
Calculates the final color of each pixel on the screen
The GPU version of [
VolumetricFog
]. See the comments involumetric_fog/mod.rs
for descriptions of the fields here.