pub struct SplatPrototype {
pub texture: PPtr,
pub tileOffset: Vector2f,
pub tileSize: Vector2f,
pub normalMap: Option<PPtr>,
pub smoothness: Option<f32>,
pub specularMetallic: Option<Vector4f>,
}Expand description
SplatPrototype is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: A Splat prototype is just a texture that is used by the TerrainData. A class on a Terrain GameObject.
Fields§
§texture: PPtrTexture of the splat applied to the Terrain.
PPtr<Texture2D>: (3.4.0 - 2018.2.21f1)
tileOffset: Vector2fOffset of the tile texture of the SplatPrototype.
tileSize: Vector2fSize of the tile used in the texture of the SplatPrototype.
normalMap: Option<PPtr>Normal map of the splat applied to the Terrain.
PPtr<Texture2D>: (4.0.0 - 2018.2.21f1)
smoothness: Option<f32>The smoothness value of the splat layer when the main texture has no alpha channel. f32: (5.0.1f1 - 2018.2.21f1)
specularMetallic: Option<Vector4f>Vector4f: (5.0.0f4 - 2018.2.21f1)
Trait Implementations§
Source§impl Debug for SplatPrototype
impl Debug for SplatPrototype
Source§impl<'de> Deserialize<'de> for SplatPrototype
impl<'de> Deserialize<'de> for SplatPrototype
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SplatPrototype
impl RefUnwindSafe for SplatPrototype
impl Send for SplatPrototype
impl Sync for SplatPrototype
impl Unpin for SplatPrototype
impl UnwindSafe for SplatPrototype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more