pbrMat

pbrMat

beta

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Base Color Runtime Baked
Use Surface Color Baked Baked
Roughness Runtime Baked
Albedo Runtime Baked
Metallic Runtime Baked
Enable Shadow Baked Baked
Use Local Position Baked Baked
Apply When Runtime Baked
  • Always:
  • Only If Unassigned:

Inputs

  • SDF: (required)
    • Coordinate Types: vec3
    • Context Types: Context
    • Return Types: Sdf
  • Irradiance Field: (optional)
    • Coordinate Types: vec3
    • Context Types: MaterialContext
    • Return Types: vec4
    • Supports Variables: lightcolor lightpos surfacecolor surfaceuv shadedlevel normal
    • Supports Variables From Inputs: metallicField roughnessField baseColorField
  • Reflectance Field: (optional)
    • Coordinate Types: vec3
    • Context Types: MaterialContext
    • Return Types: vec4
    • Supports Variables: lightcolor lightpos surfacecolor surfaceuv shadedlevel normal
    • Supports Variables From Inputs: metallicField roughnessField baseColorField irradianceField
  • Base Color Field: (optional)
    • Coordinate Types: vec3
    • Context Types: MaterialContext
    • Return Types: float vec4
    • Supports Variables: lightcolor lightpos surfacecolor surfaceuv shadedlevel normal
    • Supports Variables From Inputs: metallicField roughnessField
  • Roughness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: MaterialContext
    • Return Types: float
    • Supports Variables: lightcolor lightpos surfacecolor surfaceuv shadedlevel normal
  • Metallic Field: (optional)
    • Coordinate Types: vec3
    • Context Types: MaterialContext
    • Return Types: float
    • Supports Variables: lightcolor lightpos surfacecolor surfaceuv shadedlevel normal
    • Supports Variables From Inputs: roughnessField

Variables

  • Light Color:
  • Light Position:
  • Surface Color (r, g, b, is set):
  • Surface UV (u, v, w, is set):
  • Shaded Level (0: full shadow, 1: none):
  • Surface Normal: