import { MaterialData } from '../../../engine/loaders/material.data';
import { Vector4 } from '../../../engine/math/vector4';
import { BlendingMode, CullMode, FuncComparison } from '../../../engine/render/webgl-types';

export const DEFAULT_MATERIAL_DATA: MaterialData = {
  textures: [
    { uniformName: 'uDiffuse' },
  ],

  color: new Vector4(1, 1, 1, 1),

  blend: BlendingMode.Alpha,

  depthWrite: true,
  depthTest: true,
  depthTestFunc: FuncComparison.Less,

  cull: CullMode.Back,
};

export const NO_TEXTURE_MATERIAL: MaterialData = {
  textures: [
    { uniformName: 'uDiffuse' },
  ],

  color: new Vector4(1, 1, 1, 1),

  blend: BlendingMode.Alpha,

  depthWrite: true,
  depthTest: true,
  depthTestFunc: FuncComparison.Less,

  cull: CullMode.Back,
};
