gbuffer_utils.wgsl
Import path
Structures
struct
ResolvedGPixel
{
}
Functions
fn
gpixel_resolve
(
gpixel:
vec4<u32>
,
depth:
f32
,
pixel_id:
vec2<u32>
,
view_size:
vec2<f32>
,
world_from_clip:
mat4x4<f32>
)
->
ResolvedGPixel
fn
reconstruct_world_position
(
pixel_id:
vec2<u32>
,
depth:
f32
,
view_size:
vec2<f32>
,
world_from_clip:
mat4x4<f32>
)
->
vec3<f32>
Reject if tangent plane differs more than 0.3% or angle between normals more than 90 degrees