This is a simple shader example of a futuristic rainbow with subtle grid lines. The shader has a few different example lines with explanations on how it works. There is a line, that goes across the center of the screen and wiggles with a sin wave. There is a circle version that expands, and a few others.
The shader works at pretty much any resolution. This little project also shows examples of how to do resolution independent drawing (for both the main draw event and GUI draw event).
Feel free to use it in any project that you wish, once obtained.
Version 1.0.0. Published September 10, 2014
Created with GameMaker: Studio v1.99.182
You can only review assets you've bought.
This honestly may be the most amazing thing I have EVER seen in GameMaker! The rendering is butter smooth too.
It looks really cool. I just wish it was more easily customizable as I know nothing about shaders. I want to be able to place the circle in a specific spot and give it a specific radius.
Good performance and advance programation.. i have a dude.. As I can use only the circle and give a coordinate?
Looks great, works on my pc, now add flexibility
Right now, this shader looks really cool! Before I would use it in a game, I would want to customize it - but there aren't variables for it. I can see lots of untapped potential here if you removed some of the hard-coding:
- Let me choose a specific color or range of colors if I want
- Demonstrate some way of using a background picture, preferably without messing with blend modes.
- map this thing to a path for ultimate flexibility!
If you want to pick a certain color or color range, just change around some stuff in the shader itself. As for the way it's being drawn, I added like 3 or 4 different types of lines in the shader. It's essentially drawing the graph of a function using whatever function you write into the uv vector. As for background blending; you'll either have to be really good with shaders and do something clever; or just use blend modes. It's the easiest way. Making it to a path would be nearly impossible. The closest you could get is to use the "fullscreen" version of the shader and just drawing your path manually to a surface, then apply the fullscreen mode of this shader to the surface.
Hope this helps.
5 STARS, Works perfectly on My Windows Seven computer.
It's free and fancy coolest ever effect I can add to my project in 1 or 2 seconds!
That's all good !
Great product !
For my story,
Ok, first, I admit I'm a true beginner in Game Maker development.
With the code I have less of problem than with the DnD Game Maker default interface, so I was able to modify this shader for adapt it to my taste.
And I say, wow a such effect for free, really thanks!
I love it!
I use actually on my Main Menu Game Screen.
It do a very cool Menu background !!
Just want know a thing, please, how I can remove the 'Black background' that the effect add automatically to my whole Room?
I just don't figure where to adapt this part..
Couldn't get it working on mobile
I'm not the most experienced GameMaker coder, but I couldn't figure out how to get this displaying properly on mobile. Works fine on PC, but when exporting to Android (several devices) it displayed nothing but a blank screen. Emailed the author looking for tips but didn't hear anything back. Would love to see a fix as it looks beautiful on a monitor, but useless for my purposes, sadly.
It has worked in previous builds of GM:S on Android. If it's not working now it's either a GM:S bug or your mobile device not properly supporting the functions in this shader required to run properly. It's written in GLSL ES, so if it's not supported on your device there isn't much I can do, I'm afraid.
Total size 30.6 KB