{"id":20261298,"url":"https://github.com/actnwit/shaderity-node","last_synced_at":"2025-08-03T06:35:38.627Z","repository":{"id":47705439,"uuid":"238450520","full_name":"actnwit/shaderity-node","owner":"actnwit","description":"Shaderity - a shader utility","archived":false,"fork":false,"pushed_at":"2023-01-08T20:34:45.000Z","size":209,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-28T19:07:13.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actnwit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-05T12:57:22.000Z","updated_at":"2022-06-06T21:54:48.000Z","dependencies_parsed_at":"2023-02-08T07:30:29.400Z","dependency_job_id":null,"html_url":"https://github.com/actnwit/shaderity-node","commit_stats":null,"previous_names":["emadurandal/shaderity-node"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actnwit%2Fshaderity-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actnwit%2Fshaderity-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actnwit%2Fshaderity-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actnwit%2Fshaderity-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actnwit","download_url":"https://codeload.github.com/actnwit/shaderity-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241722532,"owners_count":20009376,"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":"2024-11-14T11:25:10.656Z","updated_at":"2025-03-03T18:46:01.123Z","avatar_url":"https://github.com/actnwit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shaderity-node\r\n\r\nshaderity-node is the core part of the shaderity-loader.\r\n\r\nThe main feature of this library is the following.\r\n\r\n1. If there is a description \"#pragma shaderity: require(path)\" in the shader code file, substitute the contents of the file in (argument resourcePath)/(path) into it. There is a sample in \"How to use\".\r\n\r\n2. Determines if it is a vertex shader or fragment shader from the extension.\r\n\r\n## How to use\r\n\r\nYou can use this via [shaderity-loader](https://github.com/actnwit/shaderity-loader).\r\n\r\nSample of feature 1:\r\nSuppose you have two files in the same folder, as shown below.\r\n\r\ntest.glsl\r\n\r\n``` glsl\r\n#pragma shaderity: require(./version.glsl)\r\n\r\nvoid main(){}\r\n```\r\n\r\nversion.glsl\r\n\r\n``` glsl\r\n#version 100\r\n```\r\n\r\nIf you use the requireFile method of this library to read test.glsl, it will load as follows:\r\n\r\n```glsl\r\n#version 100\r\n\r\nvoid main(){}\r\n```\r\n\r\n## LICENSE\r\n\r\nMIT License\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factnwit%2Fshaderity-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factnwit%2Fshaderity-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factnwit%2Fshaderity-node/lists"}