[ SHADER ] something similar to God Rays?

0 favourites
  • 5 posts
From the Asset Store
A game or skeleton for a greater game. Gifts fall, draw to make platforms to help them reach the God.
  • Hi everyone, and thanks for reading this.

    I'm porting a game from an other tool to C2.

    I love it, and everything shapes very well.

    The only thing I'm stuck with is a shader I had on my title screen.

    Some god rays were coming from the sun in the background, and I'm looking for a trick in C2 to do this.

    YOUTUBE VIDEO

    youtube.com/watch

    <img src="http://tof.canardpc.com/view/acfe9abd-41ee-436e-87d4-64673b9f436e.jpg" border="0" />

    I don't NEED it, but it looked quite cool and I'd like to get something similar (even faked) in C2.

    Any idea? :)

  • Here's some (probably bad) advice:

    why not a pre-animated, semi-opaque sprite (or a couple, across different levels) with blurred edges and blend mode set to something like additive?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks a lot for your answer, but that would be pretty hardcore! ^^!

    It would be faster to "bake" it into the character animation, and trigger the god rays when the sun colide with it. Maybe I'll do this, as the textures should be unloaded when skipping to the next layout, it should do the trick. But it's going to be super heavy on GPU... =__=

    I'm using a lot of C2 Web GL shaders, and most of them are really good. I tried to mix webGL shaders / blendings modes, but I can't get something like this.

    Again, I don't absolutely need it, but when I look at the plug in section of this forum, I would be surprised if nobody here already tried to mimic an effect like this one ;)

  • You could come close with shadow casting and some shaders, but eh..not really the same. I think you'll need a new one.

  • Hey, actually Shadow casting + radial blur could be close enough!

    I just need to find a way to apply it only on foreground sprites, with a mask or something.

    I'll try this, thanks for the idea! :)

    Bonus: as the source code for this shader is available, is porting a non C2 shader to a C2 web gl shader difficult ? Could a beginner like me give it a try or do you need to know how to code for real?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)