{"id":24961055,"url":"https://github.com/mandeep/fragula","last_synced_at":"2025-07-03T23:33:36.963Z","repository":{"id":36464455,"uuid":"185254958","full_name":"mandeep/fragula","owner":"mandeep","description":"View shaders in real-time","archived":false,"fork":false,"pushed_at":"2024-05-12T15:37:25.000Z","size":2542,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T21:37:36.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandeep.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-06T19:00:48.000Z","updated_at":"2024-05-12T15:37:28.000Z","dependencies_parsed_at":"2024-05-12T16:38:33.524Z","dependency_job_id":null,"html_url":"https://github.com/mandeep/fragula","commit_stats":{"total_commits":198,"total_committers":3,"mean_commits":66.0,"dds":"0.030303030303030276","last_synced_commit":"a11dcfaceb3af1464d71a2091d139a8930901f13"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mandeep/fragula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandeep%2Ffragula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandeep%2Ffragula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandeep%2Ffragula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandeep%2Ffragula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandeep","download_url":"https://codeload.github.com/mandeep/fragula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandeep%2Ffragula/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421460,"owners_count":23464012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T08:45:27.374Z","updated_at":"2025-07-03T23:33:36.906Z","avatar_url":"https://github.com/mandeep.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![header](header.png \"Fragula\")\n[![crates](https://img.shields.io/crates/v/fragula?style=flat-square)](https://crates.io/crates/fragula) [![license](https://img.shields.io/crates/l/fragula?style=flat-square)](https://crates.io/crates/fragula)\n\nFragula lets you view your fragment shader changes in real time. Simply save your fragment\nshader while editing and watch your changes appear in the Fragula window in real-time.\n\nInstallation\n============\n\nTo install Fragula run `cargo install fragula` in a terminal prompt.\n\nUsage\n=====\n```\nUSAGE:\n    fragula [OPTIONS] \u003cobj\u003e \u003cshader\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -t, --texture \u003ctexture\u003e    The file path to the texture image to load\n\nARGS:\n    \u003cobj\u003e       The file path to the Obj file to load\n    \u003cshader\u003e    The file path to the fragment shader to load\n\n```\n\nTo use Fragula you can run `fragula` in a terminal with the path to the\nOBJ file and fragment shader you would like to use:\n\n    $  fragula examples/suzanne.obj examples/fragment.glsl\n\nIf you have an image texture that you would like to use in your\nfragment shader you can use the `--texture` or `-t` flag:\n\n    $  fragula examples/spot.obj examples/fragment.glsl -t examples/spot_texture.png\n\nThe left mouse button can be used to rotate the model about the x and y axes. However, for\nfiner control of the model the following key bindings are available:\n\n```\nR: Reset the model back to its original state\nW: Rotate the model counter clockwise about the x axis\nS: Rotate the model clockwise about the x axis\nD: Rotate the model counter clockwise about the y axis\nA: Rotate the model clockwise about the y axis\nQ: Rotate the model counter clockwise about the z axis\nE: Rotate the model clockwise about the z axis\nZ: Scale the model in negative increments\nX: Scale the model in positive increments\nUp: Transalte the model in the positive y direction\nDown: Translate the model in the negative y direction\nLeft: Translate the model in the negative x direction\nRight: Translate the model in the positive x direction\n```\n\nThe vertex shader can be found in the `src` directory and contains the following code:\n```glsl\nin vec3 position;\nin vec3 texture;\nin vec3 normal;\n\nuniform mat4 model;\nuniform mat4 view;\nuniform mat4 projection;\n\nout vec3 vertex_normal;\nout vec3 texture_coordinate;\n\nvoid main() {\n    vertex_normal = normalize(view * model * vec4(normal, 0.0)).xyz;\n    texture_coordinate = texture;\n    gl_Position = projection * view * model * vec4(position, 1.0);\n}\n```\n\nApart from the transformation matrices, `uniform float time` and `uniform vec2 resolution` are\navailable as uniform variables.\n\nDemo\n====\n![demo](demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandeep%2Ffragula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandeep%2Ffragula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandeep%2Ffragula/lists"}