PhysicallyBasedMaterial constructor

PhysicallyBasedMaterial({
  1. Texture? baseColorTexture,
  2. Texture? metallicRoughnessTexture,
  3. Texture? normalTexture,
  4. Texture? emissiveTexture,
  5. Texture? occlusionTexture,
  6. Environment? environment,
})

Implementation

PhysicallyBasedMaterial({
  this.baseColorTexture,
  this.metallicRoughnessTexture,
  this.normalTexture,
  this.emissiveTexture,
  this.occlusionTexture,
  this.environment,
}) {
  setFragmentShader(baseShaderLibrary['StandardFragment']!);
}