• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

shader

  1. zendraw

    Shaders Interpolating the GUI only

    I assume ill need a shader for this but i have no idea where to find it, help.
  2. 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)...
  3. 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...
  4. 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 =...
  5. 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)...
  6. angelwire

    GMS 2 [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...
  7. Tyler D. Anderson

    Windows Live Shader Editor [Coming Soon]

    Greetings Fellow Devs, Today, I present a tool that will greatly improve the shader development workflow - a tool that was painstakingly put together through trial and error / constant testing with hypotheses because GMS2 is closed-source. Live Shader Editor is a C++ extension that allows you...
  8. Rizlad

    Shader is out of bounds.

    The areas on screen outside the port view are having the shader be visible in them. Although it is sorta pretty I would like it to not. I thought about drawing a black surface outside of the ported view but thought I would ask my elders how best to proceed before chasing any rabbits down any...
  9. N

    Shaders Almost perfect texture overlay shader

    I have a shader that simply draws a texture over top of the sprite that calls it. It works perfectly when the dimensions of the sprite are a multiple of two. 32x32, 64x128, etc. If they're not then the overlay texture gets stretched in a weird way. I believe the problem lies solely in my shader...
  10. E.M.I

    Windows Issues with shaders on Windows

    [RESOLVED] Hi! Very recently, I transitioned from developping on a Mac to a Windows machine. Everything works properly, except the shaders. They don't let me make any calculations or comparisons inside the shader (+, -, *, /, == and != all give me errors) while it worked perfectly on Mac. I'm...
  11. D

    Shader works on Windows and on Android emulator but not on physical Samsung device

    Hi I am building a game and using a shader to enable normal maps on sprites. Everything works fine in test windows platform and in Android emulator, but on Samsung Note 8 Android device it is completely not working. On the Samsung device the shader is not being compiled properly...
  12. D

    Passing different textures to shader for multiple objetcts

    Hi experts I am experimenting with the possibility of using normal map textures to enhance the look and feel of my sprites. So I created tree objects - a circle, a square and a star. l of them rotate in Step event. Also I use a custom shader to use the normal maps, which I prepare it in...
  13. X

    How do I standardize the pixel density my shader outputs?

    I posted on reddit too about this: https://www.reddit.com/r/gamemaker/comments/e12mnn/how_do_i_standardize_the_pixel_density_my_shader/ My goal is trying to get all the pixel stair stepping to be a standard pixel density / pixel size as say my character so that the game has a consistent...
  14. RobertRamsay

    Job Offer - Programmer [$25/hr] SHADER PROGRAMMER Required

    Hi there, I am a freelance technical artist developing some cool tools using gamemaker and some of their features would benefit from shaders, so, my being technical but not so into programming shaders and more into the art side of things, I am looking for someone who can develope shaders I...
  15. Divinik

    Shaders Dynamic Spotlight Shader?

    So the game I'm working on has enemies that have a visible cone-shaped line of sight. I want to implement a shader that makes it so that if part of the spotlight sprite is either colliding with a solid object, or a solid object is between the pixel and the cone's parent object, that part of the...
  16. A

    Shaders Shader is changing too quickly when object is moving

    I'm having a issue with the shader I'm using for a planet which is passing by in the background. The shader's "position" seems to be moving too quickly and I'm not sure what to adjust to slow it down. Here's an example: https://media.giphy.com/media/dAL2VaJGn9xYna6cEW/giphy.gif EDIT: I'm...
  17. A

    Shaders Positioning fisheye shader

    I'm trying to add a fisheye warp to a current shader I'm using to generate terrain on a planet. I've added it successfully but it's positioning the "fisheye" portion in the top left corner instead of centered and stretching to the edges. I believe it has to do with this line in the original...
  18. ltzibaozhe

    Shaders How is the shader added to the layer?

    Hello everyone! I found an "overlay" blend mode shader (simulating Photoshop's blending effect) it's great! But there is a fatal problem. It's in full screen and can't be added to the specified layer, it follows the camera movement, which drives me crazy... (I need the Blendmode effect. I have...
  19. BlueScarf

    Shaders Having Trouble Understanding Shaders and How To Change 1 Color into Another

    Hello everyone! I am new to Shaders, and don't really understand how they work. I've watched a couple of Youtube videos, and opened up some example projects, but I'm still confused. I have a large collection of walking, running, jumping, sprites for my character. And in all of these sprites he...
  20. Bart

    Asset - Scripts Get Shader Constants

    Get Shader Constants This free asset package allows you to get the values of the shader constants as defined by the OpenGL ES spec. It also shows how to get values from the fragment shader using surfaces. The included script shu_get_shader_constants returns a ds_map with all the values...
Top