MaterialParameters
Description
- Derived from
-
RenderEffectParameters abstract
Shared render effect parameters for IMaterial objects.
The following low-level render effect parameter slots are always defined:
-
'g_material' (SlotMaterial), RenderEffectParameterType.Texture2D [13], mapped to MaterialPartParameters.Map via
Index*
constants. -
'g_materialDebug', RenderEffectParameterType.Int, mapped to Debug.
-
'g_materialLut' (SlotMaterialLut), RenderEffectParameterType.Texture2D, mapped to LookupTable.
-
'g_materialBaseColor', RenderEffectParameterType.Vector4, mapped to MaterialPart.Value of BaseColor.
-
'g_materialDisplacement', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Displacement.
-
'g_materialEmissive', RenderEffectParameterType.Vector3, mapped to MaterialPart.Value of Emissive.
-
'g_materialGlossiness', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Glossiness.
-
'g_materialInfo', RenderEffectParameterType.Vector2 [13], mapped via
Index*
constants to:
Vec2F.X : MaterialPartParameters.Coords
Vec2F.Y : MaterialPartParameters.Channel -
'g_materialMetalness', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Metalness.
-
'g_materialNormal', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Normal.
-
'g_materialOcclusion', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Occlusion.
-
'g_materialOpacity', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Opacity.
-
'g_materialReflectivity', RenderEffectParameterType.Vector3, mapped to MaterialPart.Value of Reflectivity.
-
'g_materialRefraction', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Refraction.
-
'g_materialRoughness', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Roughness.
-
'g_materialSpecularity', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Specularity.
-
'g_materialTranslucency', RenderEffectParameterType.Vector3, mapped to MaterialPart.Value of Translucency.
-
'g_materialTransmission', RenderEffectParameterType.Float, mapped to MaterialPart.Value of Transmission.
Public / Constants
CountDebug
The number of debug modes.
The debug mode codes are in the range [1..N], where N is this constant.
DebugOcclusionRoughnessMetalness
Shows the final occlusion (see IMaterial.Occlusion), the final roughness (see IMaterial.Roughness) and the final metalness value (see IMaterial.Metalness) in the red, green and blue channels, respectively.
- See also
DebugOpacityTransmissionSpecularity
Shows the final inverse opacity (see IMaterial.Opacity), final transmission (see IMaterial.Transmission) and the final inverse specularity (see IMaterial.Specularity) in the red, green and blue channels, respectively.
DebugTangentMask
Shows a color code that indicates whether normal, tangent and bitangent vectors are computed by the GPU, instead of being sources from model data.
The color channels have the following meaning:
Red : ModelVertexFormat.TangentX is computed by the GPU,
Green : ModelVertexFormat.TangentY is computed by the GPU,
Blue : ModelVertexFormat.Normal is computed by the GPU
- See also