🔮
Textures, Materials and Shaders
Overview and introduction
This is the landing page for materials in Cyberpunk 2077. It contains a definition and a rough overview.
Check the section's sub pages in the wiki's navigation tree for more detailed information about the different kinds of materials. Additional material-related information can be found here:
In its original state, a 3d object (mesh) is a collection of vertices (pixels). The space between those vertices is filled by faces, which form the 3d object's surface.
The shader is the thing that goes on top of the surface, rendering a material such as glass, skin, concrete, steel…
Without a shader, objects would be invisible in the game, the surface simply being transparent. In Cyberpunk, a default shader will be assigned in such cases (such as debug_coloring.mt).
In Cyberpunk 2077, REDEngine shaders are implemented as
.mt
/.remt
files. If you have ever messed with an item's materials, then you already have.
To use a shader, you create a Material Instance, where you can configure the parameters.
Not every parameter of a shader can be configured: since skin always has subsurface scattering, it makes no sense to tweak this. But since skin color already varies dramatically if you don't throw exotic chrome into the mix, you can change them easily via tint.
For details how materials are used on a mesh, see the corresponding wiki page, or learn how materials can be loaded externally from material template files.
In the context of Cyberpunk, a material is the thing that lets the shader define the surface properties of a 3d objects: .mesh files. Typically, you create a local instance, which will then pull in a shader via
baseMaterial
.The property
baseMaterial
can point at a .mt
/ .remt
file directly, or to an intermediary .mi
file:
The .mi file
Each part of a mesh (submesh) can have a different material assigned.
If you have modded other games, you're used to PBR materials with a bunch of textures like diffuse, normal, metalness etc.
Did you know? You can make Cyberpunk's default textured material glow.
This is specific to Cyberpunk, and it is incredibly cool. If you're used to textured materials, you're probably going to hate it at first, but it has incredible versatility and re-usability.
Last modified 12d ago