Easily update any game's look with Shaders!

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

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

  • @HoosierTransfer
    @HoosierTransfer 10 месяцев назад +194

    If you want the grayscale shader to look a little better instead of averaging out the values you can dot it with 0.2989, 0.5870, 0.1140 instead. This adjusts for how sensitive the human eye is to each of the values.

    • @korypostma
      @korypostma 6 месяцев назад +8

      was going to say this, I even added this to godot engine last year to follow certain standards

  • @tomaskaila
    @tomaskaila 10 месяцев назад +83

    Sunset level? Dark silhouette shader? Just gotta apply some highlight post-shader to the little bird and you got yourself a donkey kong tropical freeze ambiance going!

  • @profdremcrab
    @profdremcrab Год назад +38

    Careful with applying grayscale this way since it isn't quite accurate with how humans perceive color, as we perceive each component in RGB with a different light intensity, and thus you need to be careful giving them equal weight by averaging

    • @Volian0
      @Volian0 10 месяцев назад +2

      yes, also you need to consider gamma correction

  • @Jebarpg
    @Jebarpg 5 месяцев назад +5

    I love these types of videos. Having thousands of these little tips would be amazing

  • @pokeman5796
    @pokeman5796 3 года назад +38

    Looking forward to the next video!

  • @ehfoss
    @ehfoss 5 месяцев назад +3

    Whoa came to show how smart I am but mentioning how you need to adjust grayscale to account for luminosity uy everyones already on it! What a smart community.
    To add to it, when the splat screen special was added to Splatoon 3, anyone who was hit had their screen go greyscale (which is annoying in a game where color is particularly important). But it didn't adjust for luminosity and gave some people headaches. It's been fixed now I think.
    Great short video. Good tip.

    • @ozymandias8523
      @ozymandias8523 Месяц назад

      Some people explained changing the grayscale value but what do you mean adjust for luminosity? Im new into this

    • @ehfoss
      @ehfoss Месяц назад

      @@ozymandias8523 Well, just trust HoosierTransfer and use these weightings for the adjustment to greyscale: "If you want the grayscale shader to look a little better instead of averaging out the values you can dot it with 0.2989, 0.5870, 0.1140 instead. This adjusts for how sensitive the human eye is to each of the values."

  • @otoS97
    @otoS97 4 месяца назад

    OpenGL developer watching this 💀

  • @ExploringNew1
    @ExploringNew1 9 месяцев назад

    Me in scratch: well thank you I guess

  • @salsichalivre5401
    @salsichalivre5401 3 года назад +13

    how could you apply it dynamically in certain situations? For example, you are going to the right with the bird and at certain moment you will have half the screen gray and half normal, and going right goes to "gray scale" and going back returns to "normal". I said "dynamic" meaning a small shading system doing it instead of built that way for a stage only (hence static). It would be more or less like having a circle radius r and with the mouse you could control it and when he is over certain part of the screen, the filter applies in all pixels inside radius r.

    • @Challacade
      @Challacade  3 года назад +12

      Love2D uses GLSL, a shading language, to implement all shaders. The code I showed in this video is really simple (just a couple lines) but you can make these as interesting as you like! You can detect distance to make different intensities for each pixels, and turn the shader on or off at different times/positions, so all the stuff you described is certainly possible with a bit of creativity and more code!

    • @allocator7520
      @allocator7520 10 месяцев назад +2

      Late reply but anyone interested: very easy you just calculate the distance of the player to the fragment (pixel) beeing drawn and if the dist < radius you grayscale else you pass the normal color, but this way you have to pass the player position to the shader

  • @MrLucas171
    @MrLucas171 5 месяцев назад

    Amazing video

  • @annyman4743
    @annyman4743 Год назад +4

    ayo shader tutorial coming soon?

  • @kitosgames8988
    @kitosgames8988 5 месяцев назад +1

    I have grayscale shader on my phone, so I don’t see difference

  • @thelred-ph3lq
    @thelred-ph3lq Год назад +3

    Kirby music rules.
    Edit: Is that the butter factory music?
    Edit2: Yup, but it's butter building, not factory. 😅

  • @jankoholic5854
    @jankoholic5854 11 месяцев назад +1

    if a player got hit and we wanted to flash the whole tileset black and white where do we put these 2 lines ?

    • @koresaliva
      @koresaliva 10 месяцев назад +1

      Turn the shader on and off

  • @XoIoRouge
    @XoIoRouge Год назад +1

    How to make it not slug the game down to 10 frames per second?

  • @BrentLoaf
    @BrentLoaf Год назад +1

    im not so sure about "easy" its hard for me 😭 but also i do kinda suck at coding in the first place so ykyk

  • @yamatanoorochi3149
    @yamatanoorochi3149 11 месяцев назад

    Games are an art medium

  • @rod0fdiscord
    @rod0fdiscord 10 месяцев назад +1

    low end pcs can say bye bye to their framerate

  • @justclem7142
    @justclem7142 10 месяцев назад

    How do you create your levels? Like the building and placing of the tiles

  • @Darksteps-w4x
    @Darksteps-w4x 4 месяца назад

    What game engine you using?

  • @otto_ueue
    @otto_ueue 9 месяцев назад

    Ooh, Birby.

  • @RazorShultzor
    @RazorShultzor 2 года назад +3

    Great videos dude. How about one for your state management and your batching/pooling of game objects? I'm new to lua but in Monogame I used a polymorphic stack for the various game states

  • @zoran123456
    @zoran123456 Год назад

    Are those shaders same as the one for godot?

  • @eightyeight8_
    @eightyeight8_ 4 месяца назад

    does this work in game maker studio 2

  • @Skillor4
    @Skillor4 2 месяца назад

    Unfortunately this doesn't tell me anything since i don't even know what engine you are using

  • @amissanime3007
    @amissanime3007 Год назад

    Will these work for Android games without gpu?

  • @silverboy1363
    @silverboy1363 10 месяцев назад

    What engine fo u use

  • @CopyrightFreeGameplayContent
    @CopyrightFreeGameplayContent 2 года назад

    Insane

  • @matthewrease2376
    @matthewrease2376 10 месяцев назад +1

    Since when do 2D games have shaders?

  • @GalvanizedSquareSteelCommenter
    @GalvanizedSquareSteelCommenter 4 месяца назад

    Fill