public override void InitBackground() { ExternalShader.SetParameter("frag_LightRadius", IntersectionRadius * 1.5f); ExternalShader.SetParameter("frag_LightAttenuationRadius", IntersectionRadius); Background = new CircleShape(IntersectionRadius, 18) { Position = this.Position, Origin = new Vector2f(IntersectionRadius, IntersectionRadius) }; }
public override void SetExternalShaderParameters(int index) { ExternalShader.SetParameter($"array[{index}]", Position); }