I started using shaders for the first time yay. So in my title screen room I've a shader but I don't want my menu and title to be affected by the shader, only the background. Should I make another surface and put the title and menu there? I'm not sure what the best way is to handle this. Any...
So I am trying to write a shader that takes two textures and draws them over one another. I've worked it all out in Shader Tool (a program on Steam), but translating it into something workable in GameMaker Studio 2 is proving to be a hair-pulling, scream-inducing experience.
I can't seem to...
Can i make a shader only appear in the background? I mean, below objects? I have i light ray effect but i only want it to be in the background. Thanks for the help :)
So I really really really really really love both the feel and art-style of Katana Zero, a gamemaker game. If you haven't seen it just do a quick gameplay search, it is well worth it.
Anyways, the game uses normal mapping on the character(s) and I'm wondering how I can pull that off myself...
I have overlapping sprites consisting of Head, 4 Limbs and a Torso that makes up a character. I would like to create a border around this character as a whole and not on its individual sprites as it is overlapping which looks funky.
I used surfaces with the masking technique and it works like a...
Hi. I'm trying to get a uniform array of floats into my GLSLES shader, but all I'm getting is sytax error warnings:
How come the following doesn't work?
uniform float some_array[8];
GMS 1.4.1763
So I have this game where so far when I hit an enemy I want him to blink (Achieved with some timers setting alpha to 0 and then back to 1 again) and then while he is blinking i wanted him to be brighter or shine.
I was able to make the sprite brighter when he is hit through a shader. Hazzah...
So I've recently redone a bit of the shadows in my game to be more accurate. I've made it so that an object draws another object's sprite from the base and stretched it (with draw_sprite_pos) to dynamically match the light objects. (If my description wasn't clear, you can see it here:
)...
For an upcoming project, we've been thinking about adding in sunlight. Something that would give the game more depth; light shining off of the player, light shining through holes in the wall. Something of the sort. I imagine Shaders are necessary to accomplish this, but I have absolutely no...
I am trying to set up a triangle strip with a custom vertex format in GMS 2.0. I only want position and texture coordinates. It seemed simple enough, but I keep getting:
This is not rocket science, but I don't understand what the problem is. I have boiled it down to be as simple as I can...
G'day all,
I've been mixing all night for the past week. Just can't get this done--would love a hint!
I am passing in two textures to a shader. They each get various calculations along the way, but at the end I get the desired textureA and textureB as separate vec4s.
Without disturbing the...
Okay, so basically i was wondering if its worth attempting to optimize a game so that it the window can be fullscreened for a better game experience. So far my game isnt that bad if i fullscreen it. theres only a few problems that need to be solved.
1. I think the gui event causes some...
Hey everyone,
This is my very first post here. I'm having some issues with an outline shader i'm trying to use.
I first tried this guy's code:
but it didn't work (no outline at all: just my sprite).
Then, I found this topic...
It would be really nice if we were able to set gl_LineWidth and gl_pointSize in shaders when drawing vertex buffers with pr_line... and pr_pointlist. This could lead to several applications, especially in 3D: cheap wires and ropes, 3D particle systems, etc.
hi, yesterday been studying Shaders and been getting the hang of it, specially Fragment shader.
i created a sprite and it is only a white sprite with black outline, now the shader that i created change its colour to red and as i test it out, it is working fine in Windows Target, but when i try...
After a question I asked a while back, I'm here again to get more info.
What are shaders strengths / weaknesses compared to alternatives (if any)?
What exactly are surfaces usually used for, and what are their strength / weaknesses or pros/cons versus any alternatives?
Any good tutorials on the...
Hey guys, I purchased GMS2 yesterday and started programming a shader today. When I went to test it I got an error saying that the shader was invalid. So I created a shader is compiled check like so:
if (shader_is_compiled(shd_fireball)){
shader_set(shd_fireball)...
First of all, I am not very good in shaders to write everything on my own so I tried to find any information about normal mapping shaders in game maker as I wanted them so badly to see in my project and decided to stop on a quite good example from NapalmIgnition in thread...
I'm looking for a way to pixelate everything on the screen, and then have the pixelation effect reversed. All in the span of about 1 second or less.
I'm assuming this would be done with a shader, but the only shader I've found for this online has only been able to pixelate backgrounds drawn in...
WHAT, WHY, HOW : Lighting system
WHAT?
First of all, you need to know what are we talking about. The lighting system is a difficult yet necessary part of your game development. The light creates the WOW effect about your game. Unless you are doing a pixel art game, you probably wants normal...