[][src]Module tray_rust::material::metal

Provides a material for modelling metal surfaces of varying roughness using the Torrance Sparrow BRDF and a Blinn microfacet distribution TODO: Add Ashikman-Shirley (spelling?) anisotropic microfacet model

Scene Usage Example

The metal material requires a refractive index and absorption coefficient that describe the physical properties of the metal along with a roughness to specify how rough the surface of the metal is.

"materials": [
    {
        "name": "rough_silver",
        "type": "metal",
        "refractive_index": [0.155265, 0.116723, 0.138381],
        "absorption_coefficient": [4.82835, 3.12225, 2.14696],
        "roughness": 0.3
    },
    ...
]

Structs

Metal

The Metal material describes metals of varying roughness