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

◆ UpdateShaders()

bool ReLogic.Peripherals.RGB.ShaderSelector.ShaderGroup.UpdateShaders ( float timeElapsed)
inline

Definition at line 82 of file ShaderSelector.cs.

83 {
84 foreach (ConditionalShader shader in Shaders)
85 {
86 shader.Shader.Update(timeElapsed);
87 if (shader.IsVisible && shader.Opacity >= 1f)
88 {
89 return !shader.Shader.TransparentAtAnyDetailLevel;
90 }
91 }
92 return false;
93 }

References ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.IsVisible, ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.Opacity, ReLogic.Peripherals.RGB.ShaderSelector.ConditionalShader.Shader, ReLogic.Peripherals.RGB.ChromaShader.TransparentAtAnyDetailLevel, and ReLogic.Peripherals.RGB.ChromaShader.Update().