• 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!

shader

  1. T

    Problem with a Color Shader

    Hey everyone, I am developing a game with only two colors that change from level to level. I'm using a shader to do so which works fine even though it is pretty simple. However, on certain computers, the shader does not work and I have no idea why. I was wondering if you could help me with it...
  2. N

    SOLVED Surface with shaders displaying blank window

    Greetings developers! Recently I was playing with surfaces and shaders and I've managed to create (by following some tutorials) a simple lighting system with some shaders. It worked perfectly on my demo project but when I tried to apply it to my main project it didnt work at all... I don't...
  3. mbeytekin

    Bitwise AND operator in shaders

    How can I calculate this in GM2 fragment shader; m[(k+4)&7] += vec4(c1 * wk, wk); s[(k+4)&7] += cc1 * wk; (k+4)&7 gives a syntax error in GM2.. I found this code from shadertoy and it works there... https://www.shadertoy.com/view/ltyyDd
  4. mbeytekin

    Cartoon Shader Idea?

    I am looking for a road map for making an image looks cartoon.. Example application is Comica for android... I've tried Line Integral Convolution method and can get some results but there is something extra for this images. Especially edges are very smooth and clear and sharp... Another...
  5. V

    Stretching the view using a shader to create a perspective/endless horizon effect.

    Hi everyone, (example) I'm using GMS 1.4 and am currently working on a 2.5d open world game. A view follows the player and the objects that come into said view from the top need to be stretched or scaled in such a way (like Mode 7). The issue is i can't seem to find any tutorials on the...
  6. brice_platinum

    GML Sprite fade transitions using surfaces

    Hello everybody, I'm trying to make a simple fade effect between two sprites and i got in to a problem. This is what I am expecting to get I created 2 sprites with the pictures and a simple background with a blue dot in the middle. Now what I want is the first image starts to fade away at the...
  7. T

    Shaders How to create color dodge shader?

    Hello! I'm trying to be efficient with the way I'm making my HUD sprites. I don't want to draw each frame with the shadow, I'd rather use a solid square and move it to fill the health bar area. My idea was to use shaders to achieve the same layer effects as in my editing software (Aseprite and...
  8. Z

    SOLVED Problem with Shaders and YYC

    Heyho guys and girls, I am currently working on a voxel engine/game. Since i had some issues regarding Performance i decided to go through the hassle of installing Visual Studio to use the YYC. But when i now run the game with yyc it messes up my textures. I use a GLSL ES shader for texturing...
  9. GoK

    GameMaker Directional Light and Shadows in 3D

    GM Version: GMS 2.2.5 Target Platform: All Download: 3D_Directional_Lighting_starter.yyz 3D_Directional_Lighting_final.yyz Links: N/A Summary Hi! In this tutorial, we will go through the process of creating directional lighting and cast shadows. Note, it's not intended for the complete...
  10. marasovec

    Help with a shader

    I'm a shader noob and I found this blur shader I'd like to use but it says there is a syntax error. Can you guys "convert" it so it's compatible with GM? uniform sampler2D image; out vec4 FragmentColor; uniform float offset[3] = float[](0.0, 1.3846153846, 3.2307692308); uniform float...
  11. A

    SOLVED how to get a shader to affect all, but one?

    Hi! Its been a while since I've been on here. so, hello hello! I've currently run into a problem that I'm desperate to solve.. I currently have a shader that de-saturates the screen via gui. The problem is I want one object to remain with color. how can I draw that object without it being...
  12. angelwire

    Graphics Toon and Outline Shaders

    First off, here’s a quick shout-out to the people who created the resources/tutorials that helped me out xygthop3 - https://marketplace.yoyogames.com/assets/4894/hlsl11-basic DragoniteSpam - https://www.youtube.com/user/2andaHalfStooges @Xor @Binsk -...
  13. E

    Shaders 2D Vertex (Not Sprite) Shader Translation (x,y)

    Hello, i was wondering how to translate correctly the x,y coordinates of vertex (Not sprite) in a shader... By now, i've got a working one. But doesn't work when i replace "10. 's" with a uniform float for each value... That makes me a bit angry :c . Probably a weird bug in my or every GML D...
  14. Vulpes_Coders

    Shaders bktGlitch working on Windows but not on Android

    Hi, I' ve bought bktGlitch shader yesterday and used it in my project. When compiling it to Windows everything worked just fine, but when I changed platform to Android the shader didn't work. Other shaders like Outline or FXAA were working perfectly. When I checked shader_is_compiled(), FXAA...
  15. Z

    Shaders Interpolating the GUI only

    I assume ill need a shader for this but i have no idea where to find it, help.
  16. Tony M

    Shaders [SOLVED] Dark outline around sprites introduced when I added a shader and surface to project

    Hi, I have successfully implemented a full screen wave shader that I adapted from here: https://marketplace.yoyogames.com/assets/261/free-shaders The shader itself works quite well, but has unfortunately introduced an issue with my sprites. Sprites with semi transparent edges (anti-aliasing)...
  17. jf_knight

    Graphics Shadertoy to Gamemaker GLSL converter

    Hello. I have something to share with you all. I have created a web app that converts simple Shadertoy shader code into GameMaker GLSL ES shader code. It performs the appropriate changes outlined in shader master Xor's tutorial, and I thought i'd automate it as well as give the extra create and...
  18. mbeytekin

    Problem With Reducing Palette via Shader

    I 've adapted 'dawnbringer shader' from shadertoy for reducing a surface's color palette. Now I want to do this with a custom palette via uniform variables. fragment shader like this ; void main() { // gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord ); vec2 c =...
  19. LittleAngel

    Argument in shader

    Hi ! Is it possible to pass an argument through a shader? I get it, yes, but I don't really understand. I have a shader who colors a sprite in red: varying vec2 v_vTexcoord; varying vec4 v_vColour; void main(){ gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord)...
  20. angelwire

    GameMaker [Solved] HLSL 11 Shaders - Problems generating and using depth map

    I'm writing an outline shader in GMS2 using HLSL 11 and I'm having issues drawing and using a depth map. I have two shaders, a main shader and an outline shader. The main shader encodes the pixel depth into the Green and Blue channels and draws that to the depth surface (the red channel is being...
Top