pub struct FeSpecularLighting {
pub in: Option<Variable<FeIn>>,
pub surface_scale: Option<Variable<f32>>,
pub specular_constant: Option<Variable<f32>>,
pub specular_exponent: Option<Variable<f32>>,
pub kernel_unit_len: Option<Variable<NumberOptNumber>>,
pub x: Option<Variable<Length>>,
pub y: Option<Variable<Length>>,
pub width: Option<Variable<Length>>,
pub height: Option<Variable<Length>>,
pub result: Option<Variable<String>>,
}Expand description
This filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction (i.e., the unit vector in the eye direction is (0,0,1) everywhere).
Fields§
§in: Option<Variable<FeIn>>§surface_scale: Option<Variable<f32>>§specular_constant: Option<Variable<f32>>§specular_exponent: Option<Variable<f32>>§kernel_unit_len: Option<Variable<NumberOptNumber>>§x: Option<Variable<Length>>§y: Option<Variable<Length>>§width: Option<Variable<Length>>§height: Option<Variable<Length>>§result: Option<Variable<String>>Trait Implementations§
Source§impl Clone for FeSpecularLighting
impl Clone for FeSpecularLighting
Source§fn clone(&self) -> FeSpecularLighting
fn clone(&self) -> FeSpecularLighting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeSpecularLighting
impl Debug for FeSpecularLighting
Source§impl<'de> Deserialize<'de> for FeSpecularLighting
impl<'de> Deserialize<'de> for FeSpecularLighting
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
Source§impl Deserialize for FeSpecularLighting
impl Deserialize for FeSpecularLighting
type Value = FeSpecularLighting
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
Derserialize this value from given
derserializer.Source§impl From<FeSpecularLighting> for Element
impl From<FeSpecularLighting> for Element
Source§fn from(value: FeSpecularLighting) -> Self
fn from(value: FeSpecularLighting) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeSpecularLighting
impl PartialEq for FeSpecularLighting
Source§impl PartialOrd for FeSpecularLighting
impl PartialOrd for FeSpecularLighting
Source§impl Serialize for FeSpecularLighting
impl Serialize for FeSpecularLighting
Source§impl Serialize for FeSpecularLighting
impl Serialize for FeSpecularLighting
impl StructuralPartialEq for FeSpecularLighting
Auto Trait Implementations§
impl Freeze for FeSpecularLighting
impl RefUnwindSafe for FeSpecularLighting
impl Send for FeSpecularLighting
impl Sync for FeSpecularLighting
impl Unpin for FeSpecularLighting
impl UnwindSafe for FeSpecularLighting
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