Exemple #1
0
        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)
            };
        }
Exemple #2
0
 public override void SetExternalShaderParameters(int index)
 {
     ExternalShader.SetParameter($"array[{index}]", Position);
 }