csharp
public record class BlendFeatureTwo different surfaces, mixed by a weight.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The heterogeneous half of layering — a metal-roughness base under a specular-glossiness overlay. Both sides must use different features, which the compiler checks: two layers of the same feature would share its parameters and be one layer twice. MaterialLayersFeature is what repeated layers want.
Fields and properties (4)
public IMaterialFeature? UnderThe layer underneath.
public IMaterialFeature? OverThe layer on top.
public float WeightHow much of Over shows, 0..1.
public string ShaderNameThe Raven shader implementing this feature, from Raven/Library/Material.
Methods (1)
public void Compile(MaterialCompilationContext context)Writes this feature's parameters, and fills any slots of its own.
Used by (5)
- MaterialCompilerTestsVixen.Rendering.Tests
- MaterialSurfaceVixen.Rendering
- MaterialSurfaceTestsVixen.Rendering.Tests
- TypeRegistrationVixen.Rendering
- Vixen_Rendering_Materials_BlendFeatureSerializerVixen.Rendering