Definition
- Namespace:
- Tizen.NUI.Scene3D
- Assembly:
- Tizen.NUI.Scene3D.dll
Class for setting Material properties of 3D models.
public class Material : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
-
- Implements
-
Examples
Material material = new Material();
ModelPrimitive modelPrimitive = new ModelPrimitive();
modelPrimitive.Material = material;
Constructors
Declaration
Declaration
public Material(Material material)
Parameters
Type |
Name |
Description |
Material |
material |
Source object to copy.
|
Properties
View Source
AlphaCutoff
Property for the alpha cutoff value of the material.
Declaration
public float AlphaCutoff { get; set; }
Property Value
View Source
AlphaMode
Property for the alpha blending mode of the material.
Declaration
public MaterialAlphaModeType AlphaMode { get; set; }
Property Value
View Source
BaseColorFactor
Property for the base color factor of the material.
Declaration
public Vector4 BaseColorFactor { get; set; }
Property Value
View Source
BaseColorUrl
Property for the URL of the base color texture.
Declaration
public string BaseColorUrl { get; set; }
Property Value
View Source
DoubleSided
Property for the double sided material flag.
Declaration
public bool DoubleSided { get; set; }
Property Value
View Source
EmissiveFactor
Property for the emissive factor of the material.
Declaration
public Vector3 EmissiveFactor { get; set; }
Property Value
View Source
EmissiveUrl
Property for the URL of the emissive texture.
Declaration
public string EmissiveUrl { get; set; }
Property Value
View Source
Ior
Property for the index of refraction of the material.
Declaration
public float Ior { get; set; }
Property Value
View Source
Property for the metallic factor of the material.
Declaration
public float MetallicFactor { get; set; }
Property Value
View Source
Property for the URL of the metallic roughness texture.
Declaration
public string MetallicRoughnessUrl { get; set; }
Property Value
Declaration
public string Name { get; set; }
Property Value
View Source
NormalScale
Property for the scale of the normal texture.
Declaration
public float NormalScale { get; set; }
Property Value
View Source
NormalUrl
Property for the URL of the normal texture.
Declaration
public string NormalUrl { get; set; }
Property Value
View Source
OcclusionStrength
Property for the strength of the occlusion texture.
Declaration
public float OcclusionStrength { get; set; }
Property Value
View Source
OcclusionUrl
Property for the URL of the occlusion texture.
Declaration
public string OcclusionUrl { get; set; }
Property Value
View Source
RoughnessFactor
Property for the roughness factor of the material.
Declaration
public float RoughnessFactor { get; set; }
Property Value
View Source
SpecularColorFactor
Property for the specular color factor of the material.
Declaration
public Vector3 SpecularColorFactor { get; set; }
Property Value
View Source
SpecularColorUrl
Property for the URL of the specular color texture.
Declaration
public string SpecularColorUrl { get; set; }
Property Value
View Source
SpecularFactor
Property for the specular factor of the material.
Declaration
public float SpecularFactor { get; set; }
Property Value
View Source
SpecularUrl
Property for the URL of the specular texture.
Declaration
public string SpecularUrl { get; set; }
Property Value
Methods
View Source
GetSampler(MaterialTextureType)
Gets the sampler of the ModelNode object for the specified texture type.
Declaration
public Sampler GetSampler(MaterialTextureType textureType)
Parameters
Returns
Type |
Description |
Sampler |
The Sampler object of the ModelNode object for the specified texture type.
|
View Source
GetTexture(MaterialTextureType)
Gets the texture of the ModelNode object for the specified texture type.
Declaration
public Texture GetTexture(MaterialTextureType textureType)
Parameters
Returns
Type |
Description |
Texture |
The Texture object of the ModelNode object for the specified texture type.
|
View Source
ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
View Source
SetSampler(MaterialTextureType, Sampler)
Sets the sampler of the ModelNode object for the specified texture type.
Declaration
public void SetSampler(MaterialTextureType textureType, Sampler sampler)
Parameters
Type |
Name |
Description |
MaterialTextureType |
textureType |
The TextureType of the sampler to set.
|
Sampler |
sampler |
The Sampler object to set.
|
View Source
SetTexture(MaterialTextureType, Texture)
Sets the texture of the ModelNode object for the specified texture type.
Declaration
public void SetTexture(MaterialTextureType textureType, Texture texture)
Parameters
Type |
Name |
Description |
MaterialTextureType |
textureType |
The TextureType of the texture to set.
|
Texture |
texture |
The Texture object to set.
|
Implements
Extension Methods