Type alias iCSMParams<T>

iCSMParams<T>: {
    baseMaterial: T | InstanceType<T>;
    cacheKey?: (() => string);
    fragmentShader?: string;
    patchMap?: iCSMPatchMap;
    silent?: boolean;
    uniforms?: {
        [key: string]: IUniform<any>;
    };
    vertexShader?: string;
} & (MaterialParams<T> extends undefined
    ? any
    : MaterialParams<T>)

Type Parameters

Type declaration

  • baseMaterial: T | InstanceType<T>
  • Optional cacheKey?: (() => string)
      • (): string
      • Returns string

  • Optional fragmentShader?: string
  • Optional patchMap?: iCSMPatchMap
  • Optional silent?: boolean
  • Optional uniforms?: {
        [key: string]: IUniform<any>;
    }
    • [key: string]: IUniform<any>
  • Optional vertexShader?: string