glsl es

  1. foreverisbetter

    Shaders enabling glsl es EXT_polygon_offset_clamp extension

    Hello, I've found a git repository in which someone was able to enable gl_frag_depth in a glsl es shader with #extension GL_EXT_frag_depth : require and the same person was able to do the same with #extension GL_OES_standard_derivatives : require for fwidth() And as far as I can tell it...
  2. U

    Question - IDE chancing the order of shaders in resource tree affects in-game application of them

    I've 8 shaders in my project so far, used to have 2 more that I wasnt using anymore so I deleted them, on the next compile, rendering was messed up. it's a 3d project and I'm using couple of surfaces as FBO's and I've bind some keys to save them for me. I've the file they're saved in open in my...
  3. 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...
  4. Bart

    Shaders Built-in lighting functions

    Hi all. The manual has a chapter on lighting. It has a couple of functions like draw_light_define_ambient, draw_light_define_point, draw_light_define_direction, ... I can access gm_LightingEnabled, MAX_VS_LIGHTS, gm_LightingEnabled and a couple of other variables in the shader. But there...
  5. C

    Shaders GMS2 shader not working. Please help.

    I just started playing with shaders and even though my code is exactly like the simple tutorials I'm following, nothing seems to change when I run the program. I have no idea what I'm doing wrong. Any advice would be a great help. Here's the fragment shader's code: varying vec2 v_vTexcoord...
  6. M

    Shaders Shader programming: Gamemaker and Unity

    Hi! I was just wondering how indepth the shading programming in Gamemaker is compared to Unity's. I am fairly certain that they both use the GLSL ES language but I wanted to see if anyone had experience before I dive in! This is of course guided towards the 2D aspects since Unity has more...
  7. Azenris

    Legacy GM [Solved] Multi target rendering

    So I'm attempting to get MTR to work. varying vec2 v_vTexcoord; varying vec4 v_vColour; void main() { vec4 colour = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord ); gl_FragData[0] = colour; gl_FragData[1] = vec4( 0, 0, 0, 1 ); } This fails with the error: array index out...
  8. F

    Shader Syntax Error

    Hi. I am extremely new to shaders, and am trying to use one as a palette system for my game. I watched a tutorial, and heavily modified the base code, and am getting a syntax error when I try to compile it. However, the line on which the syntax error occures is identical to the base code, which...
  9. Shifty

    Shaders Burnt out on this shader error

    Hey yall, just really need a second (or more) pair of eyes on this because i'm not sure what i'm missing. Trying to make a 2d directional spotlight effect with a shader. Heres the SpotLight() function that does the lighting calc. Heres the Main() of the shader so you can see how SpotLight()...
  10. sv3nxd

    Shaders [GLSL ES] [LONG PROBLEM!] modulo isn't working as supposed/cast double to float

    Hey! So, I've been looking into shaders a little bit and read through the beginnertutorials of Xor and watched a lot of youtubevideos. So, I thought I got the very, very basics of the fragshader down. So now that I knew how to manipulate colours, I wanted to play with the x and y variables in...
  11. jf_knight

    Shaders Small shader problem

    I keep receiving a syntax error when I attempt to run this shader I believe the problem could be something with the lines out vec4 c; in vec2 w ; It' a small lava lamp shader I found. I'm trying to run it in GM. I'm relatively new to shaders, so any bit of help is welcome. //Fragment uniform...
  12. S

    Shaders Need a bit of help with a very simple shader

    So, I'd like to develop a very simple shader that draws every other row/column as transparency, and leaves the rest alone. It should also switch between vertical and horizontal striping every other step. It's important to note that I am very new to GLSL, and this is my first shader. I...
  13. 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...
  14. 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...
  15. M

    Shaders texture2D not working in vertex shader

    So I tried using what is written possible in the spec of GLSL ES (and I've done it before with regular GLSL) What I want to do is grabbing a point in a texture (using UV coordinates), multiply the vertex position by that, and lastly let the fragment shader draw it out. The vertex shader is as...
  16. Warrenaterz

    Shaders GLSL ES Shader Compatability

    Hey folks, So I'm working on a game in GameMaker in my spare time and I was coding a shader system for the game using the GLSL ES language. The game isn't in a testing period yet however I sent a copy to one of my relatives to let him have a go and his computer wouldn't run the game because of...
  17. zendraw

    Shaders In-builds

    Hi, si i recently started making a shader but i cant find the inbuild functions or variables or w/e theyr called anywhere in the manual. im talking about the 'r' for red, 'b' for blue, 'rgb' for red/green/blue, 'x' for the x pos etc. im working on the GLSL ES option. i tryed writing glsl es in...
Top