예제 #1
0
파일: LavaBullet.cs 프로젝트: Zera7/G19
        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)
            };
        }
예제 #2
0
파일: LavaBullet.cs 프로젝트: Zera7/G19
 public override void SetExternalShaderParameters(int index)
 {
     ExternalShader.SetParameter($"array[{index}]", Position);
 }