Skip to content

Need some help understanding the code #10

Closed

Description

@gauravgrover95

Hi,

While I understand many things in the code. I am having confusions with the following variables. Can you kindly briefly describe what they are doing?

  • Radius
  • Inner grid
  • Outer grid
  • Alpha channel

Thanks in advance.

Activity

  1. lyuavery commented on Feb 25, 2020

    @lyuavery

    i have the same confusions.Why radius is fontSize/3 ?Besides, 255 - 255 * (d / this.radius + this.cutoff) seems not being normalized to [0,1] according to valve's talk(https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf).Is this just a hacking around or something?
    I would appretiate if you could tell me something about this.

  2. added a commit that references this issue on Apr 7, 2026
    dba3e57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions