3DS Physical Material shader
The 3DS Physical Material shader replicates the 3DS Physical Material shader available in Autodesk® 3DsMax for the High Definition Render Pipeline (HDRP). When Unity imports an FBX that includes a material using Autodesk's 3DS Physical Material shader, it applies HDRP's 3DS Physical Material shader to the material. The material properties and texture inputs are identical between the Unity and Autodesk versions of this shader. The materials themselves also look and respond to light similarly. Note that there are slight differences between what you see in Autodesk® 3DsMax and what you see in HDRP and HDRP does not support some material features.
Note that the HDRP implementation of this shader uses a Shader Graph.
Creating a 3DS Physical Material
When Unity imports an FBX with a compatible 3DS Physical Material shader, it automatically creates a 3DS Physical Material. If you want to manually create an 3DS Physical Material:
- Create a new material (menu: Assets > Create > Material).
- In the Inspector for the Material, click the Shader drop-down then click HDRP > 3DSMaxPhysicalMaterial > PhysicalMaterial3DSMax.
Properties
Surface Options
Surface Options control the overall look of your Material's surface and how Unity renders the Material on screen.
Property | Description |
---|---|
Surface Type | Specifies whether the material supports transparency or not. Materials with a Transparent Surface Type are more resource intensive to render than Materials with an Opaque Surface Type. Depending on the option you select, HDRP exposes more properties. The options are: • Opaque: • Transparent: Simulates a translucent Material that light can penetrate, such as clear plastic or glass. For more information about the feature and for the list of properties each Surface Type exposes, see the Surface Type documentation. |
- Rendering Pass | Specifies the rendering pass that HDRP processes this material in. • Before Refraction: Draws the GameObject before the refraction pass. This means that HDRP includes this Material when it processes refraction. To expose this option, select Transparent from the Surface Type drop-down. • Default: Draws the GameObject in the default opaque or transparent rendering pass pass, depending on the Surface Type. • Low Resolution: Draws the GameObject in half resolution after the Default pass. • After post-process: For Unlit Materials only. Draws the GameObject after all post-processing effects. |
- Blending Mode | Specifies the method HDRP uses to blend the color of each pixel of the material with the background pixels. The options are: • Alpha: Uses the Material’s alpha value to change how transparent an object is. 0 is fully transparent. 1 appears fully opaque, but the Material is still rendered during the Transparent render pass. This is useful for visuals that you want to be fully visible but to also fade over time, like clouds. • Additive: Adds the Material’s RGB values to the background color. The alpha channel of the Material modulates the intensity. A value of 0 adds nothing and a value of 1 adds 100% of the Material color to the background color. • Premultiply: Assumes that you have already multiplied the RGB values of the Material by the alpha channel. This gives better results than Alpha blending when filtering images or composing different layers. This property only appears if you set Surface Type to Transparent. |
- - Preserve Specular Lighting |
Indicates whether to make alpha blending not reduce the intensity of specular highlights. This preserves the specular elements on the transparent surface, such as sunbeams shining off glass or water. This property only appears if you set Surface Type to Transparent. |
- Sorting Priority | Allows you to change the rendering order of overlaid transparent surfaces. For more information and an example of usage, see the Material sorting documentation. This property only appears if you set Surface Type to Transparent. |
- Receive Fog | Indicates whether fog affects the transparent surface. When disabled, HDRP does not take this material into account when it calculates the fog in the Scene. |
- Transparent Depth Prepass | Indicates whether HDRP adds polygons from the transparent surface to the depth buffer to improve their sorting. HDRP performs this operation before the lighting pass and this process improves GPU performance. |
- Transparent Writes Motion Vectors | Indicates whether HDRP writes motion vectors for transparent GameObjects that use this Material. This allows HDRP to process effects like motion blur for transparent objects. For more information on motion vectors, see the motion vectors documentation. This property only appears if you set Surface Type to Transparent. |
- Depth Write | Indicates whether HDRP writes depth values for GameObjects that use this material. |
- Depth Test | Specifies the comparison function HDRP uses for the depth test. |
- Cull Mode | Specifies the face to cull for GameObjects that use this material. The options are: • Front: Culls the front face of the mesh. • Back: Culls the back face of the mesh. This property only appears if you disable Double Sided. |
Double-Sided GI | Determines how HDRP handles a material with regards to Double Sided GI. When selecting Auto, Double-Sided GI is enabled if the material is Double-Sided; otherwise selecting On or Off respectively enables or disables double sided GI regardless of the material's Double-Sided option. When enabled, the lightmapper accounts for both sides of the geometry when calculating Global Illumination. Backfaces are not rendered or added to lightmaps, but get treated as valid when seen from other objects. When using the Progressive Lightmapper backfaces bounce light using the same emission and albedo as frontfaces. (Currently this setting is only available when baking with the Progressive Lightmapper backend.). |
- Normal Mode | Specifies the mode HDRP uses to calculate the normals for back facing geometry. • Flip: The normal of the back face is 180° of the front facing normal. This also applies to the Material which means that it looks the same on both sides of the geometry. • Mirror: The normal of the back face mirrors the front facing normal. This also applies to the Material which means that it inverts on the back face. This is useful when you want to keep the same shapes on both sides of the geometry, for example, for leaves. • None: The normal of the back face is the same as the front face. This property only appears if you enable Double-Sided. |
Receive Decals | Indicates whether HDRP can draw decals on this material’s surface. |
Receive SSR/SSGI | Indicates whether HDRP includes this material when it processes the screen space reflection pass. HDRP also takes this material into account when it calculates screen space global illumination. This property only appears if you set Surface Type to Opaque. |
Receive SSR Transparent | Indicates whether HDRP includes this material when it processes the screen space reflection pass. This property only appears if you set Surface Type to Transparent. |
Exposed Properties
Property | Description |
---|---|
BaseColorWeight | The intensity of the base color. |
BaseColor | The color of the surface. |
BaseColorMap | Specifices a texture to use as the albedo color across the surface. |
ReflectionsWeight | The brightness of the reflections. |
ReflectionsColor | The color to modulate the specular reflection with. |
ReflectionsColorMap | Specifies a texture that determines the reflection color across the surface. |
ReflectionsRoughness | The glossiness of the specular reflections. The lower the value, the sharper the reflection. |
ReflectionsRoughnessMap | Specifies a texture that determines the reflection roughness across the surface. Note that this property only uses the red channel of the texture. |
Metalness | Determines how metal-like the surface is. A more metallic surface reflects the environment more and its albedo color is less visible. |
MetalnessMap | Specifies a texture that determines the metallic value across the surface. |
ReflectionsIOR | The index of refraction to apply to the specular reflection. This defines the material's fresnel reflectivity and is, by default, the angular function used. |
ReflectionsIORMap | Specifies a texture that determines the specular index of refraction across the surface. Note that this property only uses the red channel of the texture. |
TransparencyWeight | The relative measurement of the material's transparency. |
Transparency | The transparency of the material. |
TransparencyMap | Specifies a texture that determines the transparency across the surface. |
EmissionWeight | The intensity of the emission effect. |
Emission | The color of light to emit from this material's surface. Emissive materials appears as a source of light in your scene. |
EmissionMap | Specifies a texture that determines the emissive color across the surface. |
BumpMapStrength | The intensity of the bump map effect. |
BumpMap | Specifies a tangent-space normal map that applies a bump effect to the material. |
Anisotropy | The direction of the anisotropy effect. Negative values make the effect vertical and positive values make the effect horizontal. This stretches the specular highlights in the given direction. |
AnisotropyMap | Specifies a texture that determines the strength of the anisotropic effect across the surface. |
CoatNormal | Specifies a tangent-space normal map that applies to the coating layer. |
CoatRoughness | The glossiness of the coat layer's specular reflections. The lower the value, the sharper the reflection. |
CoatThickness | The thickness of the coating layer. |
CoatWeight | The intensity of the coating layer effect. |
CoatColor | The color of the coating layer. |
CoatIOR | The index of refraction to use for the coating layer. |
Advanced Options
Property | Description |
---|---|
Enable GPU Instancing | Enable the checkbox to tell HDRP to render Meshes with the same geometry and Material in one batch when possible. This makes rendering faster. HDRP cannot render Meshes in one batch if they have different Materials, or if the hardware does not support GPU instancing. For example, you cannot static-batch GameObjects that have an animation based on the object pivot, but the GPU can instance them. |
Emission | Toggles whether emission affects global illumination. |
- Global Illumination | The mode HDRP uses to determine how color emission interacts with global illumination. • Realtime: Select this option to make emission affect the result of real-time global illumination. • Baked: Select this option to make emission only affect global illumination during the baking process. • None: Select this option to make emission not affect global illumination. |
Motion Vector For Vertex Animation | Enable the checkbox to make HDRP write motion vectors for GameObjects that use vertex animation. This removes the ghosting that vertex animation can cause. |