Easily update any game's look with Shaders!

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • Here I show several examples of how shaders can be used to quickly update the look of your game!
    #gamedev #shorts
  • Ігри

КОМЕНТАРІ • 34

  • @HoosierTransfer
    @HoosierTransfer 7 місяців тому +177

    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 3 місяці тому +6

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

  • @tomaskaila
    @tomaskaila 7 місяців тому +76

    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!

  • @Jebarpg
    @Jebarpg 3 місяці тому +4

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

  • @profdremcrab
    @profdremcrab 9 місяців тому +33

    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 7 місяців тому

      yes, also you need to consider gamma correction

  • @pokeman5796
    @pokeman5796 2 роки тому +38

    Looking forward to the next video!

  • @salsichalivre5401
    @salsichalivre5401 2 роки тому +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  2 роки тому +11

      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 7 місяців тому +1

      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

  • @ehfoss
    @ehfoss 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.

  • @MrLucas171
    @MrLucas171 2 місяці тому

    Amazing video

  • @annyman4743
    @annyman4743 Рік тому +5

    ayo shader tutorial coming soon?

  • @RazorShultzor
    @RazorShultzor 2 роки тому +4

    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

  • @ExploringNew1
    @ExploringNew1 7 місяців тому

    Me in scratch: well thank you I guess

  • @otoS97
    @otoS97 Місяць тому

    OpenGL developer watching this 💀

  • @justclem7142
    @justclem7142 7 місяців тому

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

  • @thelred-ph3lq
    @thelred-ph3lq Рік тому +3

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

  • @Darksteps-w4x
    @Darksteps-w4x Місяць тому

    What game engine you using?

  • @otistically
    @otistically 7 місяців тому

    Ooh, Birby.

  • @eightyeight8_
    @eightyeight8_ Місяць тому

    does this work in game maker studio 2

  • @yamatanoorochi3149
    @yamatanoorochi3149 8 місяців тому

    Games are an art medium

  • @silverboy1363
    @silverboy1363 7 місяців тому

    What engine fo u use

  • @i8d295
    @i8d295 2 роки тому

    Insane

  • @BrentLoaf
    @BrentLoaf Рік тому

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

  • @jankoholic5854
    @jankoholic5854 9 місяців тому

    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 8 місяців тому

      Turn the shader on and off

  • @zoran123456
    @zoran123456 11 місяців тому

    Are those shaders same as the one for godot?

  • @amissanime3007
    @amissanime3007 11 місяців тому

    Will these work for Android games without gpu?

  • @XoIoRouge
    @XoIoRouge 9 місяців тому

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

  • @kitosgames8988
    @kitosgames8988 2 місяці тому

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

  • @rod0fdiscord
    @rod0fdiscord 7 місяців тому

    low end pcs can say bye bye to their framerate

  • @GalvanizedSquareSteelCommenter
    @GalvanizedSquareSteelCommenter Місяць тому

    Fill

  • @matthewrease2376
    @matthewrease2376 7 місяців тому

    Since when do 2D games have shaders?