Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Constants

MESH_FLAGS_VISIBILITY_RANGE_INDEX_BITS

#

MESH_FLAGS_AABB_BASED_VISIBILITY_RANGE_BIT

#

MESH_FLAGS_NO_FRUSTUM_CULLING_BIT

#

MESH_FLAGS_SHADOW_RECEIVER_BIT

#

MESH_FLAGS_TRANSMITTED_SHADOW_RECEIVER_BIT

#

MESH_FLAGS_SIGN_DETERMINANT_MODEL_3X3_BIT

#

Structures

Mesh

#
struct Mesh {
world_from_local: mat3x4<f32>,
previous_world_from_local: mat3x4<f32>,
local_from_world_transpose_a: mat2x4<f32>,
local_from_world_transpose_b: f32,
flags: u32,
lightmap_uv_rect: vec2<u32>,
first_vertex_index: u32,
current_skin_index: u32,
material_and_lightmap_bind_group_slot: u32,
tag: u32,
morph_descriptor_index: u32,
}

SkinnedMesh

#

MorphWeights

#

MorphDescriptor

#

Describes a single mesh instance that uses morph targets.

struct MorphDescriptor {
current_weights_offset: u32, MORPH_TARGETS
prev_weights_offset: u32, MORPH_TARGETS
targets_offset: u32, MORPH_TARGETS
vertex_count: u32, MORPH_TARGETS
weight_count: u32, MORPH_TARGETS
}

MorphAttributes

#

Morph displacement for a single vertex.

struct MorphAttributes {
position: vec3<f32>, MORPH_TARGETS
pad_a: f32, MORPH_TARGETS
normal: vec3<f32>, MORPH_TARGETS
pad_b: f32, MORPH_TARGETS
tangent: vec3<f32>, MORPH_TARGETS
pad_c: f32, MORPH_TARGETS
}
Contents