53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
material {
|
|
name : Lit,
|
|
shadingModel : lit,
|
|
refractionMode : cubemap,
|
|
refractionType : solid,
|
|
parameters : [
|
|
{
|
|
type : float3,
|
|
name : baseColor
|
|
},
|
|
{
|
|
type : float,
|
|
name : roughness
|
|
},
|
|
{
|
|
type : float,
|
|
name : metallic
|
|
},
|
|
{
|
|
type : float,
|
|
name : reflectance
|
|
},
|
|
{
|
|
type : float,
|
|
name : clearCoat
|
|
},
|
|
{
|
|
type : float,
|
|
name : clearCoatRoughness
|
|
},
|
|
{
|
|
type : float,
|
|
name : anisotropy
|
|
}
|
|
],
|
|
specularAntiAliasing : true
|
|
}
|
|
|
|
fragment {
|
|
void material(inout MaterialInputs material) {
|
|
prepareMaterial(material);
|
|
//material.absorption = -log(vec3(1.0, 0.7, 0.1)) / 1.0;
|
|
material.thickness = 1.0;
|
|
material.baseColor.rgb = materialParams.baseColor;
|
|
material.roughness = materialParams.roughness;
|
|
material.metallic = materialParams.metallic;
|
|
material.reflectance = materialParams.reflectance;
|
|
material.clearCoat = materialParams.clearCoat;
|
|
material.clearCoatRoughness = materialParams.clearCoatRoughness;
|
|
material.anisotropy = materialParams.anisotropy;
|
|
}
|
|
}
|