Class FluentMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- FluentMaterial
Constructors
constructor
-
Creates a new Fluent material
Parameters
- name: string
defines the name of the material
Optionalscene: anydefines the hosting scene
Returns FluentMaterial
- name: string
Properties
albedo Color
Gets or sets the albedo color (Default is Color3(0.3, 0.35, 0.4))
border Min Value
Gets or sets the minimum value that can be applied to border width (default is 0.1)
border Width
Gets or sets border width (default is 0.5)
edge Smoothing Value
Gets or sets a value indicating the smoothing value applied to border edges (0.02 by default)
hover Color
Gets or sets the color used to render the hover light (default is Color4(0.3, 0.3, 0.3, 1.0))
hover Position
Gets or sets the hover light position in world space (default is Vector3.Zero())
hover Radius
Gets or sets the radius used to render the hover light (default is 0.01)
inner Glow Color
Gets or sets the inner glow color (white by default)
Accessors
albedo Texture
Gets or sets the texture to use for albedo color
inner Glow Color Intensity
Gets or sets inner glow intensity. A value of 0 means no glow (default is 0.5)
render Borders
Gets or sets a boolean indicating if borders must be rendered (default is false)
render Hover Light
Gets or sets a boolean indicating if hover light must be rendered (default is false)
Methods
bind For Sub Mesh
-
Parameters
- world: Matrix
- mesh: Mesh
- subMesh: SubMesh
Returns void
clone
-
Parameters
- name: string
Returns FluentMaterial
dispose
-
Disposes the material.
Parameters
OptionalforceDisposeEffect: booleanspecifies if effects should be forcefully disposed
Returns void
get Active Textures
-
Returns BaseTexture[]
get Alpha Test Texture
-
Returns Nullable<BaseTexture>
get Class Name
-
Returns string
has Texture
-
Parameters
- texture: BaseTexture
Returns boolean
is Ready For Sub Mesh
-
Parameters
- mesh: AbstractMesh
- subMesh: SubMesh
Returns boolean
need Alpha Blending
-
Returns boolean
need Alpha Testing
-
Returns boolean
serialize
-
Returns any
StaticParse
-
Creates a fluent material from parsed material data.
Parameters
- source: any
defines the JSON representation of the material
- scene: Scene
defines the hosting scene
- rootUrl: string
defines the root URL to use to load textures and relative dependencies
Returns FluentMaterial
a new fluent material
- source: any
Class used to render controls with fluent design