Translating Desmos to Shaders

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 7

  • @hugofoltin5647
    @hugofoltin5647 5 місяців тому +3

    I made the same but in GLSL

  • @peppersiegel7636
    @peppersiegel7636  5 місяців тому +5

    I’m bad at Desmos, does anybody know how to use the maximum/minimum operation? I want to remove negatives so I can make a square SDF.

    • @Maxawa0851
      @Maxawa0851 5 місяців тому +1

      dont you litterally go max() or min()

    • @NikZapp
      @NikZapp 5 місяців тому +1

      to remove negatives you do max(0, x), since if x is negative it will be clamped

    • @sandpaperunderthetable6708
      @sandpaperunderthetable6708 5 місяців тому +1

      min and max picks the smallest/largest values respectively, so if you wish to remove negatives you can try min(0, x) where x is the variable of what you want, so if it goes below 0 it will be smaller so 0 gets picked instead

  • @ButtFingerer3000
    @ButtFingerer3000 5 місяців тому +1

    Bruh this is pointless. Try making code the automates this. And it will be a quadrillion times more interesting.

    • @peppersiegel7636
      @peppersiegel7636  5 місяців тому +4

      This video is for people who know desmos, but want to apply math concepts to other software. (specifically shader nodes)
      I've got some crazy advanced videos on my channel though, in case you want to see some interesting math.