1. C

    GMS 2.3+ "Invalid Shader" Error Message

    Hello! I've been trying to find a solution to this issue for a couple of hours now. Every thread I found seemed to come to the conclusion of reinstalling direct_x or something from Microsoft (I forgot what it was called already). Anyways, all I'm doing is trying to make a fragment shader that...
  2. T

    Shaders What is wrong with this shader?

    I'm trying to implement this 'simple' shader outlined here. The default 'pass through' shader GMS2 generates works fine without issues, but when I follow the steps for this one I get the following: GLSL: ############################################################################################...
  3. yaragad

    Shaders Help integrating NewPixie-CRT Shader in GMS2...

    Hello, I'm new at shaders and I have tryied a lot of them from Shadertoy in GMS2. I like them, but I really prefer the ones included in some emulator for CRT curvature, with squared scanlines and pixel leds with bloom. Specifically, Im trying to import CRT New Pixie from...
  4. S

    GMS 2 layer_script_end not executed due to event_type=/=0

    Hi all, I have a tile layer in my room that I want to use as a surface together with other layers in a shader. In the object that sets the shader in the draw event, I have this in the create event to transfer the tile layer to a surface: SurfaceTileLayer = layer_get_id("LightingLayer")...
  5. JeanSwamp

    Outline Text Shader

    Hey! I've been messing around with different ways of outline shader, and also checking examples of outline shaders. I've tried to apply the logic to fonts, using font_get_texture instead of sprite_get_texture and I was somewhat close of getting a working font outline, if the outline was just...
  6. biggins

    SOLVED Simple Color Swap Shader works in Windows but not HTML5

    There's a ton of info on shaders but I can't seem to figure out why this simpleshader works in Windows and not HTML5. No console errors or debug cues to help. It works perfectly in thre Windows target and is ignored in HTML5. I am a very long way from being comfortable with shaders so apologies...
  7. Heavybrush

    GML How to find the x and y position of the character in base of the camera

    hello I'm making a shader and there is a vignette inside it it would be the lamp if possible at the moment the center of the vignette is just the center of the uv float center = vsize - distance(vec2(0.5),uv); I would like to try to get the xy position of the character (followed by the...
  8. Heavybrush

    1Bit Bayer Matrix Ordered Dithering Shader

    I’m having a problem trying to fix my 1bit ordered dithering shader this shader is going to be perfect to be used but there is some detail that I would like to fix first of all, this shader is not just a shader, I'm going to make it for a videogame, so I don't need it to be smaller, with very...
  9. Mehdi

    GMS 2.3+ Stop Filters!?

    Hi friends, Do you know any way to make a filter be applied only on a specified layer (and not on all the layers down below) ??
  10. Vintendi

    GMS 2.3+ GMS2 MSCVCR110.dll was not found

    I just got a new pc with windows 11. I'm unable to run any game with shaders because I receive the error "The code execution cannot proceed because MSVCR110.dll was not found. Reinstalling the program may fix this issue". I tried reinstalling but it did not fix the issue. Most comments suggest...
  11. Jam373

    Mac OSX Simple Outline Shader Not Working on MacBook

    Hi all, Just got myself a MacBook Air (M1 2020) and it's my first ever Mac. I've been surprised at how much I enjoy GameDeving on it! Anyway I exported my current project to it and almost everything worked right off the bat, but the thing that didn't was a simple outline shader. I've seen a...
  12. Binsk

    GMS 2.3+ surface_set_target_ext failing?

    Howdy, this is a new one for me and I'm reaching out to see if anyone with more technical knowledge can help me out. I am working on a project that is targeting multiple systems and on one (the Nintendo Switch) I am getting a problem with surface_set_target_ext failing and returning 0. I...
  13. CrazyDiamond

    GMS 2.3+ A recipe for motion blur?

    Hey folks, Does anyone have any pointers (or the actual code!) for applying motion blur to a layer? I have some parallax background layers that are just being moved with the horizontal speed setting in the background layer itself and it would really benefit from some motion blur. I assume...
  14. Ax8472

    Shaders Shader help! "Fragment Shader: sh_nebula at line 24"

    Hi there. I was wondering if any shader experts could help me out with this one. I found a great shhader from I ran it through the GMS converter at, and implemented it as described. When I try to run my game, I get the error, "Fragment Shader...
  15. LittleAngel

    Job Offer - Programmer Programming an extension

    Hi, I am looking for a programmer who could program a mipmapping for Game Maker Studio v1.4.9999. I know there have been mipmapping extensions before, but either they can't be found, or they don't work with this version of GM. MishMash had created such an extension which was perfect. No...
  16. M

    GMS 2.3+ I want to know how to exempt draw_surface for GUI or Obj

    My problem is my GUI and Portrait is always dark when i used surface or shader (Image is below) I want GUI and Portrait always set default color please help (are there any function or ways to solve this?) GUI and surface they are already different instance layer (GUI is above surface)
  17. P

    SOLVED How to draw alpha gradient?

    Hello everybody, stuck with one problem during the game development: in our game there are 2 portals spawning enemies located on the opposite ends of the map, so, we need some way to notify player when the enemy is spawned from the portal out of his view sight: I actually imagined it somewhat...
  18. 0TastyPie0

    GMS 2.3+ Need Help with a Dither Shader

    Hello, I'm looking to make a shader for my 2D black-and-white game which will turn any gray hue pixels (often caused by alpha) into a dither pattern, the "stronger" the dither pattern, the darker those pixels will seem. It's basically the same effect that is used in "Return of the Obra Dinn"...
  19. P

    GML Apply surface only on part of screen

    Recently I came upon this CRT filter and wanted to use it in my project. Essentially how it works is through one object, which draws the filter in the Draw GUI event. Here four passes are done to run each component of the filter (downscaling, scanline filter, screen distorting and...
  20. Pelican Police

    HTML5 Shaders in Legacy Game maker and HTML5

    Compiled alongside each other for comparison. As you can see, the vignette is not present in HTML5. Did shaders not work in HTML5 exported from 1.4 or am I doing something wrong? Are there any quirks I should know?