csharp
public record class MetalRoughnessFeatureThe metalness/roughness workflow: one base colour, one metalness, one roughness.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The industry default, and the reason it is: a conductor's diffuse response is zero and its specular response is tinted, while a dielectric is the other way round, so one parameter selects between the two ends and the shader derives both channels from it.
Fields and properties (5)
public Vector3 BaseColorAlbedo for a dielectric, specular tint for a conductor. Linear.
public float MetalnessHow much of a conductor this is, 0..1.
public float RoughnessPerceptual roughness, as authored.
public string ShaderNameThe Raven shader implementing this feature, from Raven/Library/Material.
public bool IsBaseSurface
Methods (1)
public void Compile(MaterialCompilationContext context)Writes this feature's parameters, and fills any slots of its own.
Used by (33)
- ArenaThirdPersonShooter
- GridMaterialsPbrShowcase
- AssetMaterialSourceTestsVixen.Engine.Renderer.Tests
- BakedMaterialImageTestsVixen.Graphics.Golden.Tests
- CascadeCountDeviceTestsVixen.Graphics.Golden.Tests
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- DiffuseModelImageTestsVixen.Graphics.Golden.Tests
- DistanceFieldDeviceTestsVixen.Graphics.Golden.Tests
- GraphMaterialImageTestsVixen.Graphics.Golden.Tests
- IrradianceBounceDeviceTestsVixen.Graphics.Golden.Tests
- IrradianceShadingDeviceTestsVixen.Graphics.Golden.Tests
- LayeredMaterialImageTestsVixen.Graphics.Golden.Tests
- MaterialBaseSurfaceTestsVixen.Rendering.Tests
- MaterialCompilerTestsVixen.Rendering.Tests
- MaterialFeatureOrderTestsVixen.Rendering.Tests
- MaterialPermutationInventoryTestsVixen.Engine.Renderer.Tests
- MaterialReflectionTestsVixen.Rendering.Tests
- MaterialSurfaceVixen.Rendering
- MaterialSurfaceTestsVixen.Rendering.Tests
- MaxLightsDeviceTestsVixen.Graphics.Golden.Tests
- ParallaxMaterialImageTestsVixen.Graphics.Golden.Tests
- StandardFrameExposureDeviceTestsVixen.Graphics.Golden.Tests
- StandardFrameTierImageTestsVixen.Graphics.Golden.Tests
- TypeRegistrationVixen.Rendering
- Vixen_Rendering_Materials_MetalRoughnessFeatureSerializerVixen.Rendering
- EditorMountTestsVixen.Editor.App.Tests
- EditorWorldRendererVixen.Editor.App
- MaterialBakeVixen.Editor.Assets
- MaterialBakeTestsVixen.Editor.Assets.Tests
- MaterialGraphPropertyTestsVixen.Editor.AssetEditors.Tests
- MaterialImporterTestsVixen.Editor.Assets.Tests
- MaterialMapNamingVixen.Editor.Assets
- MaterialTestsVixen.Editor.AssetEditors.Tests