Skip to content

Materials inspector

The Materials inspector is your central hub for manipulating the materials on a model or entities. It offers a robust set of tools for fine-tuning the look and feel of objects in your scene. You can import textures, tweak properties, and input various maps to achieve lifelike results on the web.

Location of the Materials panel

Manage entity materials

To manage the materials of your entities in your scene, follow these steps:

  1. Select your entity: Choose an entity in the Hierarchy panel.
  2. View its materials: Navigate to the Materials tab to view a list of all materials currently applied to the selected entity.
  3. Adjust its properties: Modify the properties of each material within the Properties panel under Materials.

Properties of an entity’s material

Material prototypes

The engine offers extensive support for various materials, each catering to specific visual requirements. These materials provide a foundation for creating various surface effects.

We recommend you use MeshPhysicalMaterial for transparent materials or objects that require Clearcoat like car paint.

Choose between different prototypes in the Properties panel:

Selecting a material prototype for your entity

Basic materials

This section explores some fundamental material types used for common rendering tasks:

MaterialDescriptionIdeal use cases
MeshBasicMaterialApplies a uniform color with no lighting effects.Simple geometries, flat surfaces
MeshStandardMaterialImplements physically based shading (PBS) for realistic lighting responses.Metals, plastics, wood
MeshMatcapMaterialEmploys a pre-rendered texture for cartoon-like shading. Efficient for low-complexity scenes.Cartoon rendering
MeshPhysicalMaterialProvides the most accurate shading with light scattering and microfacet effects.High-fidelity rendering
MeshLambertMaterialCalculates diffuse lighting based on surface orientation, omitting specular highlights.Matte surfaces
MeshPhongMaterialAdds specular highlights using Phong shading, ideal for glossy materials.Metals, plastics
MeshToonMaterialCreates a cel-shaded, stylized look with sharp edges and limited color variations.Cartoon rendering
ShaderMaterialOffers complete control over material properties through custom GLSL shaders. (Requires advanced programming skills)Advanced visual effects
ShadowMaterialSpecialized material for generating shadows within the scene. (Not intended for direct object rendering)Shadow effects
LineBasicMaterialRenders lines with a uniform color.Outlines, edges, simple geometric shapes

Advanced materials

While the basic materials provide a solid foundation, these advanced materials offer more specialized functionalities and effects:

MaterialDescriptionPotential use cases
HashTiledStandardMaterialCreates non-repeating tiled textures on surfaces with noise functions. Offers control over the scale of the effect.Procedural textures
SpriteSheetMaterialAnimates sprite sheets with controllable speed, ideal for fire or exploration time-based textures.Animated textures, particle effects
ScrollingTextureMaterialAnimates textures by offsetting UV coordinates over time, creating visual movement.Flowing water, scrolling textures on screens
AnimateVertexMaterialAnimates vertex positions with procedural noise effects, allowing control over animation direction (x, y, z), scale, and speed.Dynamic mesh animations, water wave surfaces, underwater wavy effects
DisplacementMaterialCombines animate vertex effects with displacement maps and scrolling texture effects. Offers control over scrolling texture speed and vertex offset scale.Detailed terrain, flowing liquids
FadeMaterial (Advanced Users Only)Gradually fades between primary and secondary diffuse maps from top to bottom. Both diffuse maps can apply scrolling texture effects and control speed. The fade effect can change speed and shape by applying noise textures. Note: Consider using simpler approaches for basic fading effects.Complex game effects
CausticMaterialCreates animated caustic light effects on geometry with procedural Voronoi textures. Offers control over caustic color and scale.Realistic underwater effects, artistic lighting distortions
LavaMaterialCreates a visually realistic lava effect with glowing embers, procedural diffuse color, and animated heat distortion.Lava simulations
HolographicMaterialGenerates a holographic scan line effect. Allows animation of scan line density and color.Sci-fi aesthetics, holographic displays
BasicStylizeMaterialOffers cel-shaded effects with control over color variation density, enabling creation of more detailed stylized scenes.Stylized rendering
WaterStylizeMaterialSimulates stylized water with custom shaders using wave patterns. Properties include foam, water tint, and rim color.Stylized water effects
LinesMaterialCreates animated line effects on mesh surfaces. Offers control over color, density, and can be used for artistic design purposes.Artistic line rendering, glowing outlines
GodRayMaterialSimulates mesh-based god rays, streaks of light penetrating through smoke, dust, or fog.Volumetric lighting effects, atmospheric rendering
FlowMaterialCreates flowing UV effects by applying flow maps and diffuse maps, which are ideal for liquid surfaces.Liquid simulations, flowing materials
WaterSimpleMaterialSimulates a physically based ocean by applying an additional normal map. Offers control over wave speed.Realistic ocean rendering
VertexColorLerpMaterialRenders geometry with vertex colors, allowing for smooth color interpolation between vertices.Custom vertex coloring effects

Choose the right material

Select the material based on your desired visual style, performance needs, and object complexity. Experiment with different materials and explore their properties to achieve the desired aesthetic for your project.