Files
filament/samples/materials/sandboxCloth.mat
Romain Guy 0a5c068cb6 Switch specular AA to Tokuyoshi and Kaplanyan (#1218)
This replaces the previous "curvature to roughness" method. Both are related
and rely on the screen space variance of geometric normals but this new
solution offers more control (the screen space variance and the clamping
threshold can be controlled).
2019-05-23 12:56:26 -07:00

34 lines
772 B
Plaintext

material {
name : Cloth,
shadingModel : cloth,
parameters : [
{
type : float3,
name : baseColor
},
{
type : float,
name : roughness
},
{
type : float3,
name : sheenColor
},
{
type : float3,
name : subsurfaceColor
}
],
specularAntiAliasing : true
}
fragment {
void material(inout MaterialInputs material) {
prepareMaterial(material);
material.baseColor.rgb = materialParams.baseColor;
material.roughness = materialParams.roughness;
material.sheenColor = materialParams.sheenColor;
material.subsurfaceColor = materialParams.subsurfaceColor;
}
}