Translating Desmos to Shaders

Поделиться
HTML-код
  • Опубликовано: 20 апр 2024
  • НаукаНаука

Комментарии • 7

  • @hugofoltin5647
    @hugofoltin5647 3 месяца назад +3

    I made the same but in GLSL

  • @peppersiegel7636
    @peppersiegel7636  3 месяца назад +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 3 месяца назад +1

      dont you litterally go max() or min()

    • @NikZapp
      @NikZapp 3 месяца назад +1

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

    • @sandpaperunderthetable6708
      @sandpaperunderthetable6708 3 месяца назад +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 3 месяца назад +1

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

    • @peppersiegel7636
      @peppersiegel7636  3 месяца назад +3

      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.