This removes the old CPP-based web samples in favor of the new JS API. The `web/samples` folder will be added in a subsequent commit.
21 lines
615 B
Plaintext
21 lines
615 B
Plaintext
material {
|
|
name : Lit,
|
|
shadingModel : lit,
|
|
parameters : [
|
|
{ type : float3, name : baseColor },
|
|
{ type : float, name : roughness },
|
|
{ type : float, name : clearCoat },
|
|
{ type : float, name : clearCoatRoughness }
|
|
],
|
|
}
|
|
|
|
fragment {
|
|
void material(inout MaterialInputs material) {
|
|
prepareMaterial(material);
|
|
material.baseColor.rgb = materialParams.baseColor;
|
|
material.roughness = materialParams.roughness;
|
|
material.clearCoat = materialParams.clearCoat;
|
|
material.clearCoatRoughness = materialParams.clearCoatRoughness;
|
|
}
|
|
}
|