oa::UnlitMaterial

Textured unlit material for image and video display. One optional base-color texture; no lighting computation. Matches the unlit Slang shader variant.

StRust public API

Declaration

pub struct UnlitMaterial { pub base_color_texture: Option<TextureHandle>, pub tint: Color, pub uv_scale: [f32; 2], pub uv_offset: [f32; 2], pub alpha_mode: AlphaMode, }
Public Rust declaration.

Public Methods

pub fn validate(&self) -> Result<()>
fn clone(&self) -> UnlitMaterial
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &UnlitMaterial) -> bool

Associated Functions

fn default() -> Self

Public Data Members

base_color_textureOption<TextureHandle>field
tintColorfield
uv_scale[f32; 2]field
uv_offset[f32; 2]field
alpha_modeAlphaModefield

Public Method Documentation

pub fn validate(&self) -> Result<()>
No public source comment is attached to this declaration.
fn clone( &self ) -> UnlitMaterial
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &UnlitMaterial ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.