* Add postLightingColor property to materials This property can be used to modify the color computed in the lighting passes of the materials. That color is blended with the computed color according to the postLightingBlending option (add, transparent or opaque). * Remove test * Update docs * Address code review comment * Switch postLightingColor default blend mode to transparent
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
material {
|
|
name : Lit,
|
|
shadingModel : lit,
|
|
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
|
|
}
|
|
]
|
|
}
|
|
|
|
fragment {
|
|
void material(inout MaterialInputs material) {
|
|
prepareMaterial(material);
|
|
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;
|
|
}
|
|
}
|