shaders

  1. B

    v_vTexcoord returning coordinates of the whole Texture Page instead of the single image_index

    I'm only new to shaders in GM:S and I've come across a big problem but could be easily fixed for all I know but I haven't found anything online about it. I'm trying to put a gradient on the current sprite and image_index of the player using the v_vTexcoord to indicate how far I am through the...
  2. Juxxec

    Shaders Vertex position not being passed correctly to fragment shader

    Greetings All, I have this vertex shader: http://pastebin.com/2ZrnrAGG and this fragment shader: http://pastebin.com/pipP18x7 My problem is that if in the fragment shader I add a line at the end: gl_FragColor = v_Position; I receive this output: Yet I am expecting this output: The values...
  3. gitwalrus

    GML to GLSL compiler?

    I found a C++ to GLSL (shader language) compiler. I have no idea how well it works or if it works at all... Anyways you can compile GML to C++. This tool claims to compile C++ to GLSL. So could you in theory make GML run as a shader? It would probably be so slow that even a simple pass through...
  4. A Random Creator

    Legacy GM Grayscale effect help

    Hello everyone, I want to create a grayscale effect for my game, but I have no clue how to do it. I'm sure you can do it with shaders, but I don't know how to use them. basically I want to make it where once the player is at about 30 health, the screen will proceed to get darker and darker gray...
  5. D

    Legacy GM Help Shaders when Enemy Hit

    Hey, I'm trying to use the shader extension to make my obj_enemy turn white when they are hit with a bullet,and then turn back to their original color. There aren't any tutorials on how to use the shaders for just a single object. Can someone tell me how I can do this? Thanks This shader...
  6. Dragon47

    Asset - Extension Interactive Books - Now with GMS 2 support!

    Download demo: https://goo.gl/Nhgpds Marketplace link: https://marketplace.yoyogames.com/assets/4858/interactive-books This asset lets you add highly flexible and interactive books to your game. Flipping from one page to another is animated and you can flip multiple pages at once. Lighting and...
  7. T

    Question - Code Question. External assets and drawing layers to surfaces.

    I'm still learning the ropes of GMS:2, so I apologise if these questions sound a little stupid. :oops: First question, is it possible to draw specific layers of any type to a surface? Reason i'm asking is because I want to try to add multiple shader effects to some layers, but not others. In...
  8. TheStolenBattenberg

    Shaders HLSL9 Anti-Aliasing Head Ache

    Hey there, I post here way too often, but here's a new problem from the hell that is shader development & implementation... I'm trying (again) and failing (again) to implement a rather nice post screen AA type called 'NFAA' (Normal Filter Anti Aliasing). The edge detection (generation of the...
  9. B

    Shaders Using Chromatic Aberration when killing an enemy.

    Hello, I'm making something like this example (I want to achieve something like this death animation (the colors specifically) What I want to do is basically offset the color channels of a Sprite or the entire image after its been destroyed by the player I found a shader that I can use...
  10. Dragon47

    Asset - Extension Water Physics - GM Studio 2 and 1

    Download demo: https://goo.gl/EALvdu There's also a simplified demo: https://goo.gl/o3nMb6 This lets you see your highest FPS potential. It's recommended that you download the other demo first. Marketplace link: https://marketplace.yoyogames.com/assets/4795/water-physics This asset provides...
  11. Joe Ellis

    C++ Help Needed - Direct X Rendering FVF Vertex Buffers Shaders External Texture Managment

    Hi, I'm currently working on a project to do with replacing some of the d3d rendering functions, such as vertex_submit, using shaders, and external texture management through a dll If anyone wants to help it would be much appreciated, I can even pay you (around £200) to complete what I've...
  12. vdweller

    Graphics Sprite real-time multi-recoloring using shaders

    GM Version: Game Maker: Studio v 1.4.1763 Target Platform: Windows Download: https://www.mediafire.com/?pupd5p3k9g5uuc4 Links: originally posted in my dev blog: http://gleanerheights.blogspot.com/ Summary: Using a simple set of fragment shaders and color maps, we will entirely recolor a sprite...
  13. phillipPbor

    Shaders red and blue

    I got the 3dstereo shaders sample, when I tried to make the red and cyan effect. I t didn't turned right. I just wanted the tint of those right. like those 2 an the one on a top right for damage
  14. Drell

    Use sprite as shader texture

    There are walls in my game that can be broken down using a certain fighting stance. I want to add enemies that have a shield made of this material. So basically, I want to have something like blockArmor = 10; if blockArmor > 0 applyDamageToArmorInstead else applyNormalDamage if blackArmor > 0{...
  15. T

    Alpha blending between two surfaces problem. Help appreciated.

    Hi all, this is my first time ever posting on the forums. :D Before I get to the point, I am aware of the issue explained in this blog about alpha on surfaces: http://www.yoyogames.com/blog/60 I have searched many other websites and forums to see if anything would work for me, things about...
  16. A

    Shaders [SOLVED] using a variable to only draw part of an image

    Hello, I am having some trouble using a shader in my game. I am relatively new to GLSL, so any help would be appreciated. My goal: I want a shader to draw the bottom portion of a sprite, and work its way up. I want the colors to be inverted, so the end result (for a white block) would look...
  17. S

    Shaders How to use shaders to make a water-wave/ripple effect?

    As of right now, I have no clue how to use shaders. I know that they use a different coding language, and something to do with vertices and colours, but other than that I don't even know the full potential of what shaders can do. But from what I've seen, they can do ripple/wave/distortion...
  18. RobertRamsay

    Shaders [SOLVED] Shaders... How do I make a mask shader?

    How do I make a shader that treats one of my images as a mask, so that if I have an area of opaque pixels and some areas with transparent pixels multiply into my drawn sprites.? There is 3 elements here: 1) The games backdrop screen with scenery and objects/UI 2) The mask image that matches the...
  19. F

    WATER reflection help

    This is what I'm going for, but ran completly out of ideas how to make it as far as I don't understand bit about shaders, I would just love a reflection of a part of the view and the player that actually updates and is not static and a simple wave/ripple effect on it so it looks like water, can...
  20. Joe Ellis

    3D Is there a way to get anisotropic filtering working with external textures?

    Is there a way to get anisotropic filtering working with external textures? My project looks terrible just because the anisotropic filtering extension (by manta games) stops working on any textures loaded during runtime and my game needs this as textures are altered during gameplay can anyone...
Top