{"id":41081322,"url":"https://github.com/vbsw/shaders","last_synced_at":"2026-01-22T13:39:44.269Z","repository":{"id":57608472,"uuid":"264888739","full_name":"vbsw/shaders","owner":"vbsw","description":"simple vertex and fragement shader, version 1.30 (OpenGL 3.0)","archived":false,"fork":false,"pushed_at":"2021-08-05T17:24:58.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-27T22:45:08.017Z","etag":null,"topics":["example","glsl","go","golang","shader","simple"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbsw.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-05-18T09:17:44.000Z","updated_at":"2022-03-06T00:03:25.000Z","dependencies_parsed_at":"2022-09-03T10:22:18.642Z","dependency_job_id":null,"html_url":"https://github.com/vbsw/shaders","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/vbsw/shaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fshaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fshaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fshaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fshaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbsw","download_url":"https://codeload.github.com/vbsw/shaders/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fshaders/sbom","scorecard":{"id":917238,"data":{"date":"2025-08-11","repo":{"name":"github.com/vbsw/shaders","commit":"d4889d1d11f6f0db18e0aeaa93c1a15f27131cd8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Boost Software License 1.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T21:29:22.927Z","repository_id":57608472,"created_at":"2025-08-24T21:29:22.927Z","updated_at":"2025-08-24T21:29:22.927Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["example","glsl","go","golang","shader","simple"],"created_at":"2026-01-22T13:39:44.161Z","updated_at":"2026-01-22T13:39:44.251Z","avatar_url":"https://github.com/vbsw.png","language":"Go","readme":"# Shaders\n\n[![GoDoc](https://godoc.org/github.com/vbsw/shaders?status.svg)](https://godoc.org/github.com/vbsw/shaders) [![Go Report Card](https://goreportcard.com/badge/github.com/vbsw/shaders)](https://goreportcard.com/report/github.com/vbsw/shaders) [![Stability: Experimental](https://masterminds.github.io/stability/experimental.svg)](https://masterminds.github.io/stability/experimental.html)\n\n## About\nThis package contains plain vertex and fragment shaders, version 1.30 (OpenGL 3.0), for Go. It is published on \u003chttps://github.com/vbsw/shaders\u003e and \u003chttps://gitlab.com/vbsw/shaders\u003e.\n\n## Copyright\nCopyright 2020, Vitali Baumtrok (vbsw@mailbox.org).\n\nShaders is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)\n\nShaders is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.\n\n## Examples\nWith this package:\n\n\timport (\n\t\t\"github.com/go-gl/gl/v3.3-core/gl\"\n\t\t\"github.com/vbsw/shaders\"\n\t)\n\n\tfunc main() {\n\t\t....\n\t\tshader := shaders.NewPrimitiveShader()\n\t\tshader.VertexShaderID = gl.CreateShader(gl.VERTEX_SHADER)\n\t\tgl.ShaderSource(shader.VertexShaderID, 1, shader.VertexShader, nil)\n\t\t....\n\t}\n\nStandard way:\n\n\timport (\n\t\t\"github.com/go-gl/gl/v3.3-core/gl\"\n\t)\n\n\tfunc main() {\n\t\t....\n\t\tvertexShaderStr := \"#version 130\\nin vec3 vp;\\nvoid main () {\\n\\tgl_Position = vec4(vp, 1.0);\\n}\"\n\t\tshaderID := gl.CreateShader(gl.VERTEX_SHADER)\n\t\tvertexShaderC, free := gl.Strs(vertexShaderStr + \"\\x00\")\n\t\tgl.ShaderSource(shaderID, 1, vertexShaderC, nil)\n\t\tfree()\n\t\t....\n\t}\n\nInitialize the projection matrix:\n\n\timport (\n\t\t\"github.com/go-gl/gl/v3.3-core/gl\"\n\t\t\"github.com/vbsw/shaders\"\n\t)\n\n\tfunc main() {\n\t\t....\n\t\tshader.ProjectionLocation = gl.GetUniformLocation(shader.ProgramID, shader.ProjectionUniform)\n\t\tgl.UseProgram(shader.ProgramID)\n\t\tsetProjection(shader.ProjectionLocation, 400, 400)\n\t\t....\n\t}\n\n\tfunc setProjection(projectionLocation int32, width, height int) {\n\t\tprojectionMatrix := make([]float32, 4*4)\n\t\tprojectionMatrix[0] = 2.0 / float32(width)\n\t\tprojectionMatrix[5] = 2.0 / float32(height)\n\t\tprojectionMatrix[12] = -1.0\n\t\tprojectionMatrix[13] = -1.0\n\t\tprojectionMatrix[15] = 1.0\n\t\tgl.UniformMatrix4fv(projectionLocation, 1, false, \u0026projectionMatrix[0]);\n\t}\n\n## References\n- https://golang.org/doc/install\n- https://git-scm.com/book/en/v2/Getting-Started-Installing-Git\n- https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.30.pdf\n- https://github.com/go-gl/gl/blob/master/v3.3-core/gl/conversions.go\n- https://git.sr.ht/~eliasnaur/gio/tree/master/example/glfw/main.go\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbsw%2Fshaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbsw%2Fshaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbsw%2Fshaders/lists"}