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

◆ AppendOperations()

bool ReLogic.Peripherals.RGB.ShaderSelector.ShaderGroup.AppendOperations ( EffectDetailLevel quality,
List< ShaderOperation > operations )
inline

Definition at line 95 of file ShaderSelector.cs.

96 {
97 foreach (ConditionalShader shader in Shaders)
98 {
99 if (shader.IsVisible)
100 {
101 bool flag = shader.Shader.IsTransparentAt(quality);
102 ShaderBlendState blendState = new ShaderBlendState((!flag) ? BlendMode.GlobalOpacityOnly : BlendMode.PerPixelOpacity, shader.Opacity);
103 operations.Add(new ShaderOperation(shader.Shader, blendState, quality));
104 if (shader.Opacity >= 1f)
105 {
106 return !flag;
107 }
108 }
109 }
110 return false;
111 }
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), ReLogic.Peripherals.RGB.ChromaShader.IsTransparentAt(), ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.IsVisible, ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.Opacity, and ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.Shader.