Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

line_joints.wgsl

Constants

EPSILON

#
const EPSILON: f32 = 4.88e-04

Bindings

view

#
@group(0)
@binding(0)
var<uniform> view: View

joints_gizmo

#
@group(1)
@binding(0)
var<uniform> joints_gizmo: LineGizmoUniform

Structures

LineGizmoUniform

#
struct LineGizmoUniform {
world_from_local: mat3x4<f32> ,
line_width: f32 ,
depth_bias: f32 ,
resolution: u32 ,
_padding: f32 , 🟢 SIXTEEN_BYTE_ALIGNMENT
}

VertexInput

#
struct VertexInput {
@location(0)
position_a: vec3<f32> ,
@location(1)
position_b: vec3<f32> ,
@location(2)
position_c: vec3<f32> ,
@location(3)
color: vec4<f32> ,
@builtin(vertex_index)
index: u32 ,
}

VertexOutput

#
struct VertexOutput {
@builtin(position)
clip_position: vec4<f32> ,
@location(0)
color: vec4<f32> ,
}

FragmentInput

#
struct FragmentInput {
@location(0)
color: vec4<f32> ,
}

FragmentOutput

#
struct FragmentOutput {
@location(0)
color: vec4<f32> ,
}

Functions

vertex_bevel

#
@vertex
Processes each 3D point in a model before it's drawn
fn vertex_bevel ( ) -> VertexOutput

vertex_miter

#
@vertex
Processes each 3D point in a model before it's drawn
fn vertex_miter ( ) -> VertexOutput

vertex_round

#
@vertex
Processes each 3D point in a model before it's drawn
fn vertex_round ( ) -> VertexOutput

clip_near_plane

#
fn clip_near_plane ( ) -> vec4<f32>

depth

#
fn depth ( ) -> f32

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment ( ) -> FragmentOutput