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.

mesh_view_types.wgsl

Import path

Constants

POINT_LIGHT_FLAGS_SHADOWS_ENABLED_BIT

#
const POINT_LIGHT_FLAGS_SHADOWS_ENABLED_BIT: u32 = 1u

POINT_LIGHT_FLAGS_SPOT_LIGHT_Y_NEGATIVE

#
const POINT_LIGHT_FLAGS_SPOT_LIGHT_Y_NEGATIVE: u32 = 2u

POINT_LIGHT_FLAGS_VOLUMETRIC_BIT

#
const POINT_LIGHT_FLAGS_VOLUMETRIC_BIT: u32 = 4u

POINT_LIGHT_FLAGS_AFFECTS_LIGHTMAPPED_MESH_DIFFUSE_BIT

#
const POINT_LIGHT_FLAGS_AFFECTS_LIGHTMAPPED_MESH_DIFFUSE_BIT: u32 = 8u

DIRECTIONAL_LIGHT_FLAGS_SHADOWS_ENABLED_BIT

#
const DIRECTIONAL_LIGHT_FLAGS_SHADOWS_ENABLED_BIT: u32 = 1u

DIRECTIONAL_LIGHT_FLAGS_VOLUMETRIC_BIT

#
const DIRECTIONAL_LIGHT_FLAGS_VOLUMETRIC_BIT: u32 = 2u

DIRECTIONAL_LIGHT_FLAGS_AFFECTS_LIGHTMAPPED_MESH_DIFFUSE_BIT

#
const DIRECTIONAL_LIGHT_FLAGS_AFFECTS_LIGHTMAPPED_MESH_DIFFUSE_BIT: u32 = 4u

FOG_MODE_OFF

#
const FOG_MODE_OFF: u32 = 0u

FOG_MODE_LINEAR

#
const FOG_MODE_LINEAR: u32 = 1u

FOG_MODE_EXPONENTIAL

#
const FOG_MODE_EXPONENTIAL: u32 = 2u

FOG_MODE_EXPONENTIAL_SQUARED

#
const FOG_MODE_EXPONENTIAL_SQUARED: u32 = 3u

FOG_MODE_ATMOSPHERIC

#
const FOG_MODE_ATMOSPHERIC: u32 = 4u

Structures

ClusterableObject

#
struct ClusterableObject {
light_custom_data: vec4<f32> ,
color_inverse_square_range: vec4<f32> ,
position_radius: vec4<f32> ,
flags: u32 ,
shadow_depth_bias: f32 ,
shadow_normal_bias: f32 ,
spot_light_tan_angle: f32 ,
soft_shadow_size: f32 ,
shadow_map_near_z: f32 ,
texture_index: u32 ,
pad: f32 ,
}

DirectionalCascade

#
struct DirectionalCascade {
clip_from_world: mat4x4<f32> ,
texel_size: f32 ,
far_bound: f32 ,
}

DirectionalLight

#
struct DirectionalLight { }

Lights

#
struct Lights { }

Fog

#
struct Fog {
base_color: vec4<f32> ,
directional_light_color: vec4<f32> ,
directional_light_exponent: f32 ,
mode: u32 ,
}

ClusterableObjects

#
struct ClusterableObjects { }

ClusterLightIndexLists

#
struct ClusterLightIndexLists {
data: array<u32> ,
}

ClusterOffsetsAndCounts

#
struct ClusterOffsetsAndCounts { }

ClusterableObjects

#
struct ClusterableObjects { }

ClusterLightIndexLists

#
struct ClusterLightIndexLists { }

ClusterOffsetsAndCounts

#
struct ClusterOffsetsAndCounts { }

LightProbe

#
struct LightProbe {
light_from_world_transposed: mat3x4<f32> ,
cubemap_index: i32 ,
intensity: f32 ,
affects_lightmapped_mesh_diffuse: u32 ,
}

LightProbes

#
struct LightProbes {
reflection_probes: array<LightProbe,8u> ,
irradiance_volumes: array<LightProbe,8u> ,
reflection_probe_count: i32 ,
irradiance_volume_count: i32 ,
view_cubemap_index: i32 ,
smallest_specular_mip_level_for_view: u32 ,
intensity_for_view: f32 ,
view_environment_map_affects_lightmapped_mesh_diffuse: u32 ,
}

ScreenSpaceReflectionsSettings

#

For more information on these settings, see the documentation for bevy_pbr::ssr::ScreenSpaceReflections.

struct ScreenSpaceReflectionsSettings {
perceptual_roughness_threshold: f32 ,
thickness: f32 ,
linear_steps: u32 ,
linear_march_exponent: f32 ,
bisection_steps: u32 ,
use_secant: u32 ,
}

EnvironmentMapUniform

#
struct EnvironmentMapUniform {
transform: mat4x4<f32> ,
}

OrderIndependentTransparencySettings

#

Shader version of the order independent transparency settings component.

struct OrderIndependentTransparencySettings {
layers_count: i32 ,
alpha_threshold: f32 ,
}

ClusteredDecal

#
struct ClusteredDecal {
local_from_world: mat4x4<f32> ,
image_index: i32 ,
tag: u32 ,
pad_a: u32 ,
pad_b: u32 ,
}

ClusteredDecals

#
struct ClusteredDecals { }