I'm trying to import a shadertoy shader into my project, I've followed a tutorial to troubleshoot compile errors and pass the right uniforms but for some reason the shader is only producing one value for the "noise" it's creating.
What's supposed to happen is it sets up noise at different color...
How would I go about creating a shader that shows a raindrop texture and distorts the view around them? I don't know enough about shaders to be able to create this type of shader effect.
What I am trying to make is in this video of Metro Exodus where there is a raindrop texture in the top left...
Hi,
I'm trying to translate a cloud shader from shader toy to GML and as a relative newbie to shaders I'm struggling.
The original is here...
My code so far is resulting in the sprite simply flickering from the sky blue to slight variations of the sky blue.
I have set the texture to a noise...
Hi, I am trying to implement a 3D fog of war shader (i have been struggling with this for a while). I have tried to build one from scratch as well as implement on I got off the market place and each time, I have run into a similar problem. I am able to create the proper effect, however the the...
I have a cone of vision for my enemies, and I want it so that the part of the cone that is through a wall doesn't get drawn, and maybe also have a line drawn where it is colliding.
Something like this:
https://drive.google.com/file/d/1sYwbd0rosreMgZuA9t8khvZcK9nfsyTm/view?usp=sharing
Any ideas...
Hi!
I want make cool noise effect which will combined with dynamic light.
I found this GLSL shader:
https://www.shadertoy.com/view/XsX3zB
And trying to adapt it into GMS2 shader. The rewrite part of fragment shader looks like this:
//
// Simple passthrough fragment shader
//
varying vec2...
Hi guys.
I have written a shader from one of tutorials I have seen which creates grayscale. When I apply it onto a sprite with a transparent background, it correctly becomes black and white but I get a black background behind it.
any one can help?
this is the shader:
varying vec2...
I keep getting an error saying it can't pack a variable in a shader I've written, the shader worked fine until I updated it today to add more colors. Does anyone have experience debugging packing errors?
Vertex shader
Fragment shader
Hello! I wanted to quick share this little shader I've put in the Marketplace
This shader will replicate the Sin City trademark aesthetic, with the black & white ultra contrasted color, and then red!
It's extremely easy to use, just pass the parameters in shader_sincity_start_extended() and...
Okay so I have been following this game for a while now "Into the Dim". Really neat design so kudos first of all to its developer. But what I want to figure out is how could I achieve something like this in GMS2? What I want to do is have a vignette sort of follow the player or camera and slowly...
Hi,
I need some help on a shader I've got working on Mac but on Windows the result is just white.
The shader is a simple distortion shader.
In the game code Draw End event I'm doing something like this:
shader_set(sh_water);
shader_set_uniform_f(u_time, current_time/600)...
So I'm currently working on a game where some objects are mineable and others aren't. I want those that can be mined to stick out a little bit but not to destroy the atmosphere.
So here is an example, I want the object with this sprite:
to look like this:
I manually animated this one...
Sorry folks, I`m still a rookie on Game Maker and despite of watching some tutorials I couldn`t apply a distortion shader with a vignette shader on the whole game screen.
I`ve created two shaders: One named "sh_underwater" and the other named "shd_vignette_noise"...
Hello guys!
I'm curious about lightning systems as there are multiple ways to do it. I'm currently drawing a black rectangle on top and substracting with blendmodes for that, which I think is the common and easy way.
But this creates a very smooth lightning that doesn't work very good on not...
I have a shader for all my rooms of the size below:
nightCycleSurf = surface_create(8192, 8192);
But it causes lag, so how can I make the surface to be just the size of view[0] (which is variable of size and position in the room)?
I just copied all the shader data from a youtube tutorial so I...
I recently purchased a gameboy color shader from the marketplace, it works absolutely fantastic, but when I try to draw text to the screen I get a strange effect. The background of the font gets colored in instead of the actual letters. Pictures and code below.
After shader:
Before shader...
Hi,
Running the same shader for the plane sprite from windows and mac,
windows gets the intended results:
But running it from my macbook air 2017 this image is being produced:
(again, this is regarding the plane sprite, the background difference is unrelated)
The shader is being compiled and...
I'm working on a top-down game that's a combination of tower defense and farming sim. In this game, there are different actions the player can do like shoot a gun, plow the ground, water the ground, plant seeds, and place sentries (aka turrets).
The system I'm using to accomplish all this now...
GM Version: GMS2
Target Platform: ALL
Download: N/A
Links: https://github.com/bilouw/Gamemaker-Lighting-Engine
Summary:
Hi,
Here a little Lighting Engine that i made on GMS 2. It's not very impressive, but it can make a good job. It is based on the Mike Dailly tutorial for shadow projection...
Hello, guys. I have a small shader that makes the sprite go fully white. I just want to this whiteness disappears in time. I'm very new at shaders, so I have no idea how all this works.
My shaders Vertex code is default, but the Fragment code looks like this:
varying vec2 v_vTexcoord;
varying...