API REFERENCE

Scene3DMaterialOptions

The Scene3DMaterialOptions type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface Scene3DMaterialOptions {
  shading?: 'unlit'|'phong';
  diffuse?: Scene3DRgb;
  specular?: Scene3DRgb;
  emissive?: Scene3DRgb;
  shininess?: number;
  normalMode?: 'smooth'|'flat';
  twoSided?: boolean;
}