Change how thickness is setup on Strata material.

* Add a new thickness input on the root node for thin surface
* Add a new thickness input on vertical layer operator, to provide the thickness of the 'layered' material
* Mark Slab thickness input as deprecated, for converting existing asset once this CL is checked in.

#rb sebastien.hillaire
#jira none
#preflight 638903020e4613faedc9e8be

[CL 23358938 by Charles deRousiers in ue5-main branch]
This commit is contained in:
Charles deRousiers
2022-12-01 14:52:03 -05:00
parent ffb9fb0ad3
commit 5b21c9a8e4
24 changed files with 253 additions and 54 deletions
@@ -597,6 +597,8 @@ public:
break;
case MP_ShadingModel:
return MaterialInterface->CompileProperty(&ProxyCompiler, MP_ShadingModel);
case MP_SurfaceThickness:
return MaterialInterface->CompileProperty(&ProxyCompiler, MP_SurfaceThickness);
case MP_FrontMaterial:
return MaterialInterface->CompileProperty(&ProxyCompiler, MP_FrontMaterial);
default:
@@ -619,6 +621,10 @@ public:
{
return MaterialInterface->CompileProperty(Compiler, MP_ShadingModel);
}
else if (Property == MP_SurfaceThickness)
{
return MaterialInterface->CompileProperty(Compiler, MP_SurfaceThickness);
}
else if (Property == MP_FrontMaterial)
{
return MaterialInterface->CompileProperty(Compiler, MP_FrontMaterial);