terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.Graphics.Shaders.MiscShaderData Class Reference
+ Inheritance diagram for Terraria.Graphics.Shaders.MiscShaderData:
+ Collaboration diagram for Terraria.Graphics.Shaders.MiscShaderData:

Public Member Functions

 MiscShaderData (Ref< Effect > shader, string passName)
 
override void Apply (Entity entity, DrawData? drawData=null)
 
virtual void Apply (DrawData? drawData=null)
 
MiscShaderData UseColor (float r, float g, float b)
 
MiscShaderData UseColor (Color color)
 
MiscShaderData UseColor (Vector3 color)
 
MiscShaderData UseSamplerState (SamplerState state)
 
MiscShaderData UseImage0 (string path)
 
MiscShaderData UseImage0 (Asset< Texture2D > texture)
 
MiscShaderData UseImage1 (string path)
 
MiscShaderData UseImage1 (Asset< Texture2D > texture)
 
MiscShaderData UseImage2 (string path)
 
MiscShaderData UseImage2 (Asset< Texture2D > texture)
 
MiscShaderData UseOpacity (float alpha)
 
MiscShaderData UseSecondaryColor (float r, float g, float b)
 
MiscShaderData UseSecondaryColor (Color color)
 
MiscShaderData UseSecondaryColor (Vector3 color)
 
MiscShaderData UseProjectionMatrix (bool doUse)
 
MiscShaderData UseSaturation (float saturation)
 
virtual MiscShaderData GetSecondaryShader (Entity entity)
 
MiscShaderData UseShaderSpecificData (Vector4 specificData)
 
virtual void Apply ()
 

Public Attributes

EffectPass _effectPass
 

Protected Attributes

string _passName
 

Properties

Effect Shader [get, set]
 

Static Private Member Functions

static bool IsPowerOfTwo (int n)
 

Private Attributes

Vector3 _uColor
 
Vector3 _uSecondaryColor
 
float _uSaturation
 
float _uOpacity
 
Asset< Texture2D_uImage0
 
Asset< Texture2D_uImage1
 
Asset< Texture2D_uImage2
 
bool _useProjectionMatrix
 
Vector4 _shaderSpecificData
 
SamplerState _customSamplerState
 
readonly Ref< Effect_shader
 

Detailed Description

Definition at line 16 of file MiscShaderData.cs.


The documentation for this class was generated from the following file: