pub struct GltfLoadSettings {
    pub scale: f32,
    pub directional_light_shadow_distance: f32,
    pub normal_direction: NormalTextureYDirection,
    pub enable_directional: bool,
}
Expand description

Determines parameters that are given to various parts of the gltf world that cannot be specified by gltf alone.

Fields

scale: f32

Global scale applied to all objects (default: 1)

directional_light_shadow_distance: f32

Size of the shadow map in world space (default: 100)

normal_direction: NormalTextureYDirection

Coordinate space normal maps should use (default Up)

enable_directional: bool

Enable built-in directional lights (default true)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.