{"action":"created","issue":{"url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/3","repository_url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe","labels_url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/3/comments","events_url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/3/events","html_url":"https://github.com/rreusser/glsl-solid-wireframe/issues/3","id":328870540,"node_id":"MDU6SXNzdWUzMjg4NzA1NDA=","number":3,"title":"Error compiling fragment shader","user":{"login":"kevzettler","id":126209,"node_id":"MDQ6VXNlcjEyNjIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/126209?v=4","gravatar_id":"","url":"https://api.github.com/users/kevzettler","html_url":"https://github.com/kevzettler","followers_url":"https://api.github.com/users/kevzettler/followers","following_url":"https://api.github.com/users/kevzettler/following{/other_user}","gists_url":"https://api.github.com/users/kevzettler/gists{/gist_id}","starred_url":"https://api.github.com/users/kevzettler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevzettler/subscriptions","organizations_url":"https://api.github.com/users/kevzettler/orgs","repos_url":"https://api.github.com/users/kevzettler/repos","events_url":"https://api.github.com/users/kevzettler/events{/privacy}","received_events_url":"https://api.github.com/users/kevzettler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-06-03T23:06:30Z","updated_at":"2018-10-26T07:54:46Z","closed_at":null,"author_association":"NONE","body":"```bash\r\nfile number 0: http://localhost:3000/static/js/bundle.js:1349:28\r\n   1|  #extension GL_OES_standard_derivatives : enable\r\n   2|  precision mediump float;\r\n   3|  #define GLSLIFY 1\r\n   4|  float gridFactor_1_0 (vec2 vBC_1_1, float width_1_2, float feather_1_3) {\r\n   5|    float w1 = width_1_2 - feather_1_3 * 0.5;\r\n   6|    vec3 bary = vec3(vBC_1_1.x, vBC_1_1.y, 1.0 - vBC_1_1.x - vBC_1_1.y);\r\n   7|    vec3 d = fwidth_1_4(bary);\r\n    |            ^^^\r\n    | no matching overloaded function found\r\n    | ^^^\r\n    | dimension mismatch\r\n    |          ^^^\r\n    | cannot convert from 'const mediump float' to 'mediump 3-component vector of float'\r\n    | \r\n   8|    vec3 a3 = smoothstep(d * w1, d * (w1 + feather_1_3), bary);\r\n   9|    return min(min(a3.x, a3.y), a3.z);\r\n  10|  }\r\n  11|  \r\n  12|  float gridFactor_1_0 (vec2 vBC_1_1, float width_1_2) {\r\n  13|    vec3 bary = vec3(vBC_1_1.x, vBC_1_1.y, 1.0 - vBC_1_1.x - vBC_1_1.y);\r\n  14|    vec3 d = fwidth_1_4(bary);\r\n    |            ^^^\r\n    | no matching overloaded function found\r\n    | ^^^\r\n    | dimension mismatch\r\n    |          ^^^\r\n    | cannot convert from 'const mediump float' to 'mediump 3-component vector of float'\r\n    | \r\n  15|    vec3 a3 = smoothstep(d * (width_1_2 - 0.5), d * (width_1_2 + 0.5), bary);\r\n  16|    return min(min(a3.x, a3.y), a3.z);\r\n  17|  }\r\n  18|  \r\n  19|  \r\n  20|  \r\n  21|  varying vec2 b;\r\n  22|  void main () {\r\n  23|    gl_FragColor = vec4(vec3(gridFactor_1_0(b, 1.0)), 1);\r\n  24|  }\r\n  25| \r\n```\r\n\r\n\r\n\r\n\r\nThis error is happening when trying to copy the regl example from the README"},"comment":{"url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/comments/433320877","html_url":"https://github.com/rreusser/glsl-solid-wireframe/issues/3#issuecomment-433320877","issue_url":"https://api.github.com/repos/rreusser/glsl-solid-wireframe/issues/3","id":433320877,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzMyMDg3Nw==","user":{"login":"Fabiantjoeaon","id":4189340,"node_id":"MDQ6VXNlcjQxODkzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/4189340?v=4","gravatar_id":"","url":"https://api.github.com/users/Fabiantjoeaon","html_url":"https://github.com/Fabiantjoeaon","followers_url":"https://api.github.com/users/Fabiantjoeaon/followers","following_url":"https://api.github.com/users/Fabiantjoeaon/following{/other_user}","gists_url":"https://api.github.com/users/Fabiantjoeaon/gists{/gist_id}","starred_url":"https://api.github.com/users/Fabiantjoeaon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fabiantjoeaon/subscriptions","organizations_url":"https://api.github.com/users/Fabiantjoeaon/orgs","repos_url":"https://api.github.com/users/Fabiantjoeaon/repos","events_url":"https://api.github.com/users/Fabiantjoeaon/events{/privacy}","received_events_url":"https://api.github.com/users/Fabiantjoeaon/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T07:54:46Z","updated_at":"2018-10-26T07:54:46Z","author_association":"NONE","body":"Never mind, I figured it out, I had to enable `EOS_STANDARD_DERIVATIVES` inside regl, and I then had to enable and prefix it with `GL_` inside of my fragment shader!"}}
{"actor":{"display_login":"Fabiantjoeaon"}}