Studio Yotsuba
Back to Node List

PBR Material

pbr_material

Bundles explicit 2D texture maps into a UV-space game material.

Reviewed
Guide available

Input Ports

NameTypeDescription
Tangent Normal
tangent_normal
TangentNormal
Typed tangent-space normal map. When connected, it overrides Legacy Normal Image.
Base Color
base_color
Image
Optional Base Color map. All connected maps must share dimensions.
Legacy Normal Image
normal
Image
Optional Legacy Normal Image map. All connected maps must share dimensions.
Roughness
roughness
Image
Optional Roughness map. All connected maps must share dimensions.
Metallic
metallic
Image
Optional Metallic map. All connected maps must share dimensions.
Ambient Occlusion
ao
Image
Optional Ambient Occlusion map. All connected maps must share dimensions.
Emission
emission
Image
Optional Emission map. All connected maps must share dimensions.

Output Ports

NameTypeDescription
PBR Material
material
PbrMaterial
UV-space material assembled from explicit 2D image maps.

Parameters

NameTypeDefaultRangeDescription / Options
Material Name
name
Text
Material—

Name stored in GLB.

Material ID
material_id
Text
——

Stable material asset id. Empty uses the authoring node id.

Fallback Color
fallback_color
Color
[0.7200000286102295,0.7200000286102295,0.7200000286102295,1]—

Base color used when Base Color is not connected. It matches the first connected map's dimensions, or uses 1x1 when no map is connected.

Normal Convention
normal_convention
Enum
OpenGL—

Tangent-space green-channel convention.

  • OpenGLOpenGL
  • DirectXDirectX
Alpha Mode
alpha_mode
Enum
Opaque—

GLB alpha mode.

  • OpaqueOpaque
  • MaskMask
  • BlendBlend
Alpha Cutoff
alpha_cutoff
Float
0.50–1 / step 0.01

Cutoff used by Mask alpha mode.

Texel Density
texel_density
Float
160.01–4096 / step 1

Reference texels per world unit.

Filter
sampling
Enum
Nearest—

Texture sampling filter.

  • NearestNearest
  • LinearLinear
Wrap
wrap
Enum
Repeat—

Texture wrap used on both axes.

  • ClampToEdgeClampToEdge
  • RepeatRepeat
  • MirroredRepeatMirroredRepeat

Overview

Explicitly bundles PixPipeline 2D images into a PBR texture set: base color, normal, roughness, metallic, AO, and emission. It is the glue between the 2D and 3D lanes, dressing a 3D model with textures drawn by 2D nodes.

Usage tips

  • The minimum setup is one base-color image. Connect an image made with 単色画像 or noise_generate → gradient_map directly. See workflows/model_asset_basics.md.
  • Color-space convention for maps: base color and emission are sRGB; all others, including roughness, are linear. Pass a normal image through Tangent Normal Map first so its tangent-space and OpenGL/DirectX convention are explicit.
  • Legacy Normal Image remains functional for existing graphs but produces a warning. If both normal inputs are connected, the typed Tangent Normal and its convention win.
  • If Base Color is disconnected, the fallback color uses the dimensions of the first connected map, or 1×1 when no map supplies dimensions.
  • To draw against UVs, use the UV guide and region masks from model_texture_layout as a base. Create a gutter with texture_layout_dilate before bundling to prevent nearest-neighbor bleeding.
  • Material name and ID are key to asset management. Use a meaningful name such as "Chest Wood."

Common pitfalls

  • A Surface normal_map was connected directly: Surface normals are in view space and cannot be connected; that violates the contract. Prepare a tangent-space map for the PBR normal.
  • roughness/metallic looks wrong: the map should be linear but was authored as an sRGB image. Use an image with directly specified gray values.
  • Colors bleed across face boundaries: the gutter is too small. Insert texture_layout_dilate.

Related nodes

  • model_texture_layout / texture_layout_dilate — create the UV guide and gutter
  • model_set_material / Model Set Material — apply the bundled material to a model
  • model_gltf_export — embed it in a textured GLB
  • surface_export — export HD-2D textures without a mesh
Back to Node List