DB/LiquidMaterial

From wowdev
Revision as of 19:39, 2 August 2014 by Schlumpf (talk | contribs) (Add mapping to shader classes for 15464)
Jump to navigation Jump to search

This file got added with Wrath of the Lich King.

Note that mapping to shaders etc is hardcoded. (see table below)

Structure

Column Field Type Notes
1 ID Integer
2 LiquidVertexFormat Flags
3 flags Boolean &1: isTransparent

--schlumpf_ 23:12, 28 September 2008 (CEST)

mapping as of 15464

switch (materialId)
{
  case 1:
    return new Liquid::CMaterialWater();
  case 2:
    return new Liquid::CMaterialMagma();
  case 3:
    return new Liquid::CMaterialWater(); // yes, twice
  case 4:
    return new Liquid::CMaterialMagma(); // yes, twice
  case 5:
    return new Liquid::CMaterialMercury();
  case 10:
    return new Liquid::CMaterialFog();

  case 8:
  default:
    return new Liquid::CMaterialDebug();
}