public override void Initialize(DeviceContextHolder contextHolder) {
base.Initialize(contextHolder);
if (Kn5Material.AlphaTested) {
Flags |= EffectSimpleMaterial.AlphaTest;
}
_txDiffuse = GetTexture("txDiffuse", contextHolder);
_material = new EffectSimpleMaterial.StandartMaterial {
Ambient = Kn5Material.GetPropertyValueAByName("ksAmbient"),
Diffuse = Kn5Material.GetPropertyValueAByName("ksDiffuse"),
Specular = Kn5Material.GetPropertyValueAByName("ksSpecular"),
SpecularExp = Kn5Material.GetPropertyValueAByName("ksSpecularEXP"),
Emissive = Kn5Material.GetPropertyValueCByName("ksEmissive"),
Flags = Flags
};
}