Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LoadMiscVertexShaders()

static void Terraria.Initializers.DyeInitializer.LoadMiscVertexShaders ( )
inlinestaticprivate

Definition at line 448 of file DyeInitializer.cs.

449 {
450 Ref<Effect> vertexPixelShaderRef = Main.VertexPixelShaderRef;
451 GameShaders.Misc["MagicMissile"] = new MiscShaderData(vertexPixelShaderRef, "MagicMissile").UseProjectionMatrix(doUse: true);
452 GameShaders.Misc["MagicMissile"].UseImage0("Images/Extra_" + (short)192);
453 GameShaders.Misc["MagicMissile"].UseImage1("Images/Extra_" + (short)194);
454 GameShaders.Misc["MagicMissile"].UseImage2("Images/Extra_" + (short)193);
455 GameShaders.Misc["FlameLash"] = new MiscShaderData(vertexPixelShaderRef, "MagicMissile").UseProjectionMatrix(doUse: true);
456 GameShaders.Misc["FlameLash"].UseImage0("Images/Extra_" + (short)191);
457 GameShaders.Misc["FlameLash"].UseImage1("Images/Extra_" + (short)189);
458 GameShaders.Misc["FlameLash"].UseImage2("Images/Extra_" + (short)190);
459 GameShaders.Misc["RainbowRod"] = new MiscShaderData(vertexPixelShaderRef, "MagicMissile").UseProjectionMatrix(doUse: true);
460 GameShaders.Misc["RainbowRod"].UseImage0("Images/Extra_" + (short)195);
461 GameShaders.Misc["RainbowRod"].UseImage1("Images/Extra_" + (short)197);
462 GameShaders.Misc["RainbowRod"].UseImage2("Images/Extra_" + (short)196);
463 GameShaders.Misc["FinalFractal"] = new MiscShaderData(vertexPixelShaderRef, "FinalFractalVertex").UseProjectionMatrix(doUse: true);
464 GameShaders.Misc["FinalFractal"].UseImage0("Images/Extra_" + (short)195);
465 GameShaders.Misc["FinalFractal"].UseImage1("Images/Extra_" + (short)197);
466 GameShaders.Misc["EmpressBlade"] = new MiscShaderData(vertexPixelShaderRef, "FinalFractalVertex").UseProjectionMatrix(doUse: true);
467 GameShaders.Misc["EmpressBlade"].UseImage0("Images/Extra_" + (short)209);
468 GameShaders.Misc["EmpressBlade"].UseImage1("Images/Extra_" + (short)210);
469 GameShaders.Misc["LightDisc"] = new MiscShaderData(vertexPixelShaderRef, "MagicMissile").UseProjectionMatrix(doUse: true);
470 GameShaders.Misc["LightDisc"].UseImage0("Images/Extra_" + (short)195);
471 GameShaders.Misc["LightDisc"].UseImage1("Images/Extra_" + (short)195);
472 GameShaders.Misc["LightDisc"].UseImage2("Images/Extra_" + (short)252);
473 }
static Dictionary< string, MiscShaderData > Misc
MiscShaderData UseProjectionMatrix(bool doUse)

References Terraria.Graphics.Shaders.GameShaders.Misc, Terraria.Graphics.Shaders.MiscShaderData.UseProjectionMatrix(), and Terraria.Main.VertexPixelShaderRef.

Referenced by Terraria.Initializers.DyeInitializer.LoadMisc().