{{tag>graphic skin texture nonpbr}} [[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **nonpbr.metalness** ====== Skin Texture Property: nonpbr.metalness ====== |Excepted Data Source|1 component image| |Data Range|0 to 1| |Default Value|0| |Affected Modules|Graphic| |Linked Properties|[[nonpbr_albedo|nonpbr.albedo]]| ====== Description ====== Defines an artificial Non-PBR Metalness value. This texture property is part of Non-PBR Metalness workflow and is used together with the [[nonpbr_albedo|nonpbr.albedo]] texture property. These values are Non-PBR since they do not represent a single real world material properties. Instead they store [[color|color]] and [[reflectivity|reflectivity]] texture property in a merged format distributed across an //albedo// and a //metalness// texture image. The albedo image stores [[color|color]] for dieletric parts of the material and a limited [[reflectivity|reflectivity]] for eletric parts of the material. The metalness texture is used as mask. Only for true black and white metalness image this conversion yields reasonable results. For blended values problems like white-edging can happen. The conversion rule used is: * [[color|color]] = mix(albedo, vec3(0), metalness) * [[reflectivity|reflectivity]] = mix(vec3(0.04), albedo, metalness) Reflectivity is limited since it maps to the range from 4% to 100% reflectance and can not represent well materials with partial eletric behavior. These texture properties exist to allow using textures authored by tool supporting only the Non-PBR Metalness workflow as well as porting from other game engines. The albdeo values are typically an 8 bit image with 1 color component with the data located inside the range from 0 to 1. 0 represents dieletric materials using albedo as [[color|color]]. 1 represents eletric materials using albedo as [[reflectivity|reflectivity]]. Values in between blend between these two mappings. The default value for this texture property is 0.