• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

shaders

  1. Apapappa

    Windows RenderTech

    Description: This is a little side thing I work on sometimes, mostly when I want to relax a bit. I'm making this to prepare a "framework" which I can use whenever I decide to actually make one of the 3D games I have planned. It is definitely not perfect and has a lot of errors and what not but...
  2. S

    Shaders Having trouble applying Vignette shader and distortion on screen

    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"...
  3. I

    Legacy GM Texture Sampling question

    I turned off the setting "Interpolate colors between pixels", I would hope this means texture resolution wont impact the speed of texture sampling in the fragment shader since it would just use the color it finds at the texture coordinates, not caring about neighboring colors. Just wondering if...
  4. Wile94

    GMS 1.4 Shader/Texture interpolation on fullscreen trouble

    Hi, so basically I'm testing the code from this video: In the create event I have something like this: color_sets = 4; color_row_index = 1; v_offset = shader_get_uniform(shdr_palette_swap, "Offset"); v_normal = color_row_index/256; palette_swap_sampler =...
  5. V

    GameMaker Fullscreen Motion Blur

    Hey, guys. I was wondering if anybody has some motion blur scripts or shaders to blur everything visible. I can script code to motion blur individual objects and it looks great, but I'd love to see it all blur.
  6. muddrox

    GameMaker [SOLVED] Shader works wrong on Mac

    Hello, there everyone! I developed a shader that makes any sprite a solid color. It works wonderfully on windows. However, this shader fails to work the same way on Mac. On Mac, the shader effect produces a weird, staticy, rectangular effect over the sprites that are drawn with it. I have...
  7. R

    Question - Code Mobile Browser Shaders & WebGL

    Hi forum! I'm developing an HTML5 game, that is supposed to run on both Desktop and Mobile browsers. Within this project, various shaders are used and I've been having some troubles, specifically on mobile browsers. Shaders on mobile browsers end up drawing black images or not event drawing at...
  8. T

    Windows Shaders are broken [SOLVED]

    I've been having this problem for more than 6 months now and it's just really annoying, the shaders don't work at all,not even the official demo (Yoyo Dungeon) with shaders isn't working and the only thing that gamemaker gives to me about this problem is this (when i try to test the game) and...
  9. P

    GameMaker Shaders lose transparency when I use game_reset

    I made a shader for my character so I could swap its palette, and it works fine when I first run the game, but when I use game_restart, the transparent background turns black. Run from Gamemaker: game_restart: Shader fragment code: // // Simple passthrough fragment shader // varying...
  10. w0rm

    [SOLVED] Shader issue

    I have a project where I have set a shader to draw a circle segment. I'm using a sprite with size of 1x1 pixel for this and scale it to proper size. Everything works fine but the whole thing gets nuts the minute I add a second sprite to the project. After that my shader code is still applied but...
  11. Carloskhard

    GameMaker Using shaders vs draw for tinting the whole screen.

    So I've make an effect that makes the whole screen tints red. So far I was doing it by drawing a red rectangle over the whole camera space but my camera in the game rotates a lot and drawing always at the right position and angle is hard. Should I try using shaders for tinting the whole camera...
  12. atma505

    GameMaker Using Shaders for Sprites in 3D

    I'm looking into methods for having sprites "face" the camera when projecting in 3D. In GMS1, I drew a wall using the sprite as its texture. I'm sure a similar effect could be achieved using vertices in GMS2. However, it seems that shaders have the capacity for manipulating the X, Y, and Z...
  13. N

    GameMaker Light shader

    I wanted to make a shader for hovering over buttons, which made them lighter. v_vColour = vec4(in_Colour.r + 128, in_Colour.g + 128, in_Colour.b + 128, in_Colour.a); For some reason I can't use "+"-es. WHY?!?!!?
  14. N

    Understanding GLSL Shaders

    [Error]
  15. ConstaChymic

    Question - Code Default vertex & fragment shader when lighting is used?

    Hi. I'm wondering what default glsl scripts are used when you are drawing things in 3d and are using lights. I've been trying to make my own but I cannot for the life of me figure out how to use any of the gl_* variables provided (bar a few such as gl_Fragcoord and gl_Position), as most of my...
  16. M

    Discussion [SOLVED] GMS2 "Shader Invalid" error when setting a shader

    Hey everyone, I was testing out some shaders in GMS2 today but unfortunately I am getting a really annoying error whenever I try starting my game. This is what I have in my Draw Event: shader_set( shd ); shader_reset(); The shader is the default shader template you get when creating one and...
  17. F

    Legacy GM Shader issues with HTML5 in Safari/Silk

    Apologies - I posted a variation on this problem before, but having spent a couple more days working on it, I wanted to raise it again in a more coherent manner. I've been testing my game on various browsers, and found that the shader I'm using doesn't work on iOS Safari or Amazon Silk. It...
  18. F

    Legacy GM How to turn off shader for specific browsers in HTML5

    My whole-surface shader doesn't display correctly (in fact, it doesn't display anything) in Safari or Amazon's Silk browser, but I can't seem to get it to switch off just for these browsers. I've tried the following: if (shader_is_compiled(shader)) { shader_set(shader)...
  19. F

    Legacy GM Shader interfering with interactivity?

    I'm trying to get caught up on shaders really fast, so there's a lot I don't really understand yet. I'm mixing together a few tutorials to get the result I want, which is basically a full screen gaussian blur on all of my text and objects. I'm using a tutorial shader that works fine in the...
  20. Evanski

    Job Offer - Programmer {closed} Looking for some one to make some shaders for me

    So far I only need 2 Shaders, I will pay 80$ for both shaders I need one of a blurry dizziness (Like when your drunk) and one of smiley green stuff I want them to be able to be activated by a single line of code such as if (keyboard_check_pressed(vk_up)) { DO shader here } So...
Top