PbrMaterial
PbrMaterial — PbrMaterial osztály. Örököl: Material.
Methods: com.aspose.threed
Metódusok
| Name | Type | Access | Description |
|---|---|---|---|
transparency | double | Read | Gets or sets the transparency factor. |
normalTexture | TextureBase | Read | Gets or sets the texture of normal mapping. |
specularTexture | TextureBase | Read | Gets or sets the texture for specular color. |
albedoTexture | TextureBase | Read | Gets or sets the texture for albedo. |
albedo | Vector3 | Read | Gets or sets the base color of the material. |
occlusionTexture | TextureBase | Read | Gets or sets the texture for ambient occlusion. |
occlusionFactor | double | Read | Gets or sets the factor of ambient occlusion. |
metallicFactor | double | Read | Gets or sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric. |
roughnessFactor | double | Read | Gets or sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth. |
metallicRoughness | TextureBase | Read | Gets or sets the texture for metallic(in R channel) and roughness(in G channel). |
emissiveTexture | TextureBase | Read | Gets or sets the texture for emissive. |
emissiveColor | Vector3 | Read | Gets or sets the emissive color. |
MAP_SPECULAR | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping. |
MAP_DIFFUSE | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping. |
MAP_EMISSIVE | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping. |
MAP_AMBIENT | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping. |
MAP_NORMAL | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Metódusok
| Signature | Description |
|---|---|
PbrMaterial() | Construct a default PBR material instance. |
getTransparency() → double | Gets or sets the transparency factor. |
setTransparency(transparency: double) | Sets the transparency value. |
getNormalTexture() → TextureBase | Gets or sets the texture of normal mapping. |
setNormalTexture(normalTexture: TextureBase) | Sets the normal texture value. |
getSpecularTexture() → TextureBase | Gets or sets the texture for specular color. |
setSpecularTexture(specularTexture: TextureBase) | Sets the specular texture value. |
getAlbedoTexture() → TextureBase | Gets or sets the texture for albedo. |
setAlbedoTexture(albedoTexture: TextureBase) | Sets the albedo texture value. |
getAlbedo() → Vector3 | Gets or sets the base color of the material. |
setAlbedo(albedo: Vector3) | Sets the albedo value. |
getOcclusionTexture() → TextureBase | Gets or sets the texture for ambient occlusion. |
setOcclusionTexture(occlusionTexture: TextureBase) | Sets the occlusion texture value. |
getOcclusionFactor() → double | Gets or sets the factor of ambient occlusion. |
setOcclusionFactor(occlusionFactor: double) | Sets the occlusion factor value. |
getMetallicFactor() → double | Gets or sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric. |
setMetallicFactor(metallicFactor: double) | Sets the metallic factor value. |
getRoughnessFactor() → double | Gets or sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth. |
setRoughnessFactor(roughnessFactor: double) | Sets the roughness factor value. |
getMetallicRoughness() → TextureBase | Gets or sets the texture for metallic(in R channel) and roughness(in G channel). |
setMetallicRoughness(metallicRoughness: TextureBase) | Sets the metallic roughness value. |
getEmissiveTexture() → TextureBase | Gets or sets the texture for emissive. |
setEmissiveTexture(emissiveTexture: TextureBase) | Sets the emissive texture value. |
getEmissiveColor() → Vector3 | Gets or sets the emissive color. |
setEmissiveColor(emissiveColor: Vector3) | Sets the emissive color value. |
fromMaterial(material: Material) → PbrMaterial | Allow convert other material to PbrMaterial. |
getTexture(slotName: String) → TextureBase | Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name. |
setTexture(slotName: String, texture: TextureBase) | Sets the texture to specified slot. |
toString() → String | Formats object to string. |
iterator() → Iterator<TextureSlot> | Gets the enumerator to enumerate internal texture slots. |
A3DObject() | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
getName() → String | The segments of the curve. |
setName(name: String) | Constructs a CircleShape profile with specified radius. |
getProperties() → PropertyCollection | Initializes a new instance of Cylinder class. |
findProperty(name: String) → Property | Initializes a new instance of the Bone class. |
getProperty(name: String) → Object | Gets the transform matrix of the node in current pose. |
setProperty(name: String, value: Object) | Gets the width segments. |
removeProperty(name: String) → boolean | Gets flip coordinate system of control points/normal during importing/exporting. |