shader

  1. GoK

    GMS 2 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...
  2. 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...
  3. 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...
  4. 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 -...
  5. 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...
  6. V

    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...
  7. zendraw

    Shaders Interpolating the GUI only

    I assume ill need a shader for this but i have no idea where to find it, help.
  8. 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)...
  9. 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...
  10. 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 =...
  11. 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)...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. E

    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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top