shader

  1. TheStolenBattenberg

    Shaders Help with Post Screen Crepuscular/God Rays...

    Hey, Thanks to the previous help from xygthop3 [Here: https://forum.yoyogames.com/index.php?threads/3d-position-to-2d-position.41203/], I was able to get my 3D Crepuscular Rays shader working. As said there I'm not too good when it comes to shader programming; so I'm not sure if this is...
  2. L

    GML Failing to apply shader properly. 60 shades of frames...

    Hi guys, I'm kind of frustrated, there is this one thing that i wanted to apply to my game but i have failed to do so... I wanted to apply a chromatic dissortion effect to my game. My initial game sample has 4 sprites... the are is one animated sprite in the background. and a player sprite...
  3. B

    3D Drawing vertex with a transparent texture problem.

    Hello, I have a problem with drawing vertex with a transparent texture. It shows some of weird transparent texture rendering like this. Here is my code. For my game, I'm using Xor's lighting shader and some of custom codes to load converted vertexes. (the box) I've tried any of fixes from...
  4. jf_knight

    Shaders Using pixel shaders on spine/JSON files

    Is it possible to apply pixel shaders to spine files? I am trying to apply this free shader to a spine JSON file https://marketplace.yoyogames.com/assets/5888/outline-shader-by-matharoo in the "outline_start" script you have... var _spr; if (argument_count<=2) _spr = sprite_index; else _spr =...
  5. Shadowblitz16

    Shaders draw pixel array with shader?

    can someone tell me how to draw a pixel array with a shader? this is what I have been trying to do. /// shd_draw uniform int tilesize; uniform int tileset[4]; uniform int palette[2]; uniform int tile; uniform int dx; uniform int dy; int RGBA; vec4 drawColor; vec2 drawPos...
  6. T

    How can I get my palette-swap shader to work with semi-transparent sprites?

    I've made a palette-swap shader that works fine if I only have fully-opaque and fully-transparent pixels in my sprites, but if I have a semi-transparent part of a sprite, then that part of the sprite doesn't look palette-swapped. Here's the code: varying vec2 v_vTexcoord; varying vec4...
  7. jf_knight

    Shaders Pixel shaders to a Spine Json?

    Anyone know where I can find a tutorial/example on how to apply pixel shaders to a Spine Json file? I just need one good example I can work off of.
  8. ShaunJS

    Asset - Shaders Dissolve/Edge Burn/Disintegrate Shader

    (Currently supports GMS 2.0 and 1.x!) Itch - Marketplace - Patreon Create a real-time dissolve effect that can disintegrate or materialize any sprite using a size-matched black and white dissolve mask. Different colours and masks can create many different effects! Just two scripts and...
  9. I

    Help changing RGB sprite parts in game.

    I have a character sprite, also a red,green,blue layer mask for that character. so, I'm in need of changing the red, green and blue parts of the mask colors and merge with the base sprite, to give the appeareance of changing colors ... can someone help me with those ? i saw some things about...
  10. matharoo

    Asset - Graphics Platformer Water Reflection

    Matharoo presents... Platformer Water Reflection >> GET HERE << The quickest way to add water with reflections in your platformer game! It's as easy as dropping an object into a room, as seen in the second GIF below. Available for both GMS 1.x and 2.x. If you're looking for top-down water...
  11. JAG

    GMS 2 [SOLVED (spoiler: not a bug)] Shader Bug?

    I believe there's a bug with shader processing in GMS2, Im hoping someone can prove move wrong! Here's a project that demonstrates the bug: https://drive.google.com/file/d/1uyKCP5cp_MiJtbuvIfzRnPp0UA9WkinJ/view?usp=sharing You should be able to push the '5' key and cycle through the colour...
  12. JAG

    GMS 2 Shader Not WOrkiiiiinnngg

    Hiya people, Im trying to palette swap some sprites with a real simple shader, looks like this: varying vec2 v_vTexcoord; varying vec4 v_vColour; uniform sampler2D palette; void main() { vec4 origColour = texture2D( gm_BaseTexture, v_vTexcoord ); gl_FragColor = vec4(texture2D(palette...
  13. matharoo

    Asset - Graphics Realistic Water Reflection

    Matharoo presents... Realistic Water Reflection 2 bucks only! Get it here GMS 1.x and 2.x versions available! Using this asset, you can make your objects have reflections in the water. The reflections are customizable, as can be seen in the GIFs below. Getting the reflections to work is...
  14. COWCAT

    Shader - Getting the texture size of texture2D?

    For my game, I'm using a shader to do a "magnifying glass" effect on the screen. It works perfect on all environments (Windows, PS4, Vita, iOS...) EXCEPT some Android phones. I've spent time to understand why, and it seems the "actually used" texture size for "gm_BaseTexture" varies...
  15. sv3nxd

    Shaders [GLSL ES] [LONG PROBLEM!] modulo isn't working as supposed/cast double to float

    Hey! So, I've been looking into shaders a little bit and read through the beginnertutorials of Xor and watched a lot of youtubevideos. So, I thought I got the very, very basics of the fragshader down. So now that I knew how to manipulate colours, I wanted to play with the x and y variables in...
  16. A

    Legacy GM Making surface pixels smoothly to fade to transparency [SOLVED]

    I'm trying to achieve an effect where a surface gradually fades to complete transparency. I've tried lots of methods to do this, but because of how blending works, especially on surfaces with alphas that aren't 1, I'm having trouble getting complete transparency. (I can't just draw the entire...
  17. C

    About Shaders

    i'm trying introduce my self to Shaders. but the tutorials speak about Fragment(pixels) and not so much on Vertex(i don't know\understand these). the tutorial about the different versions and not what we can do with them :( can anyone give me more introduction about Shaders?
  18. K

    Released Let Them Come

    Hi everyone, my first independent game Let Them Come launched on Steam and Xbox on October 3rd. Coming to PS4, iOS and Android in the coming weeks. Let Them Come is fast-paced pixel art shoot ‘em up that makes heavy use of shaders to achieve exciting lighting effects. Game Maker has been a...
  19. F

    Help with a Pallete swap

    Hi Gamemakers i have a question i have a sprite of a character and I want it to change to another color depending on if the player chooses that armor that can be done with shaders and only the basic here is the normal sprite and the recolored
  20. The Reverend

    Graphics Shaders for hobby programmers: Newest Video: LUT maps

    GM Version: GM:S 1.2+ | GMS 2 Target Platform: All Download: N/A | Video Tutorial Link | Playlist: https://www.youtube.com/playlist?list=PL0kTSdIvQNCNE-BDKOlYu628AalMmXy_P Summary: The series is mainly for hobby programmers who are new to shaders or struggle understanding shaders. I don't...
Top