{"id":15382687,"url":"https://github.com/watunder/ss-custom","last_synced_at":"2026-01-27T12:36:41.481Z","repository":{"id":140676512,"uuid":"466142481","full_name":"Watunder/SS-Custom","owner":"Watunder","description":"Custom shaders for OPTPiX SpriteStudio 6","archived":false,"fork":false,"pushed_at":"2022-03-08T20:20:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T13:00:27.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"GLSL","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/Watunder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T13:54:22.000Z","updated_at":"2022-03-08T16:25:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"73c6447f-5da8-4135-a50f-7c7dfb0b42bf","html_url":"https://github.com/Watunder/SS-Custom","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"e486e589d3c7eb821a01f144bb98ff37c32abbef"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Watunder/SS-Custom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watunder%2FSS-Custom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watunder%2FSS-Custom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watunder%2FSS-Custom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watunder%2FSS-Custom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Watunder","download_url":"https://codeload.github.com/Watunder/SS-Custom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watunder%2FSS-Custom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-01T14:33:48.568Z","updated_at":"2026-01-27T12:36:41.456Z","avatar_url":"https://github.com/Watunder.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SS-Custom\nCustom shaders for [OPTPiX SpriteStudio 6](http://www.webtech.co.jp/spritestudio/index.html)\n\n## Reference\n- VS\n\n        #version 120\n        attribute vec4\tvarg;\n\n        void main()\n        {\n            gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;\n\n            gl_Position = ftransform();\n\n            gl_FrontColor = gl_Color;\n\n            gl_TexCoord[1] = varg;\n        }\n\n- FS\n\n        #version 120\n        uniform sampler2D   texture2d;\n        uniform float       args[16];\n        uniform float       params[16];\n\n        const int\tA_TW    = 0;    // Texture width (pixel unit).\n        const int\tA_TH\t= 1;    // Texture height (pixel unit).\n        const int\tA_U1\t= 2;    // Texture width (normalized).\n        const int\tA_V1\t= 3;    // Texture height (normalized).\n        const int\tA_LU\t= 4;    // U value at the left edge.\n        const int\tA_TV\t= 5;    // V value at the top edge.\n        const int\tA_CU\t= 6;    // U value at the center.\n        const int\tA_CV\t= 7;    // V value at the center.\n        const int\tA_RU\t= 8;    // U value at the right edge.\n        const int\tA_BV\t= 9;    // V value at the bottom edge.\n        const int\tA_PM\t= 10;   // Passed 1.0f if \"unpremultiply alpha of transparent parts with mix blend.(deprecated)\" option is checked in the project settings.\n\n        vec4 getTexColor( vec2 c )\n        {\n            vec4\tp = texture2D( texture2d, c );\n\n            if ( args[A_PM] \u003c= 0.0 ) {\n                return\tp;\n            }\n            if ( p.a \u003c= 0.0 ) {\n                return\tvec4( 0.0 );\n            }\n\n            return\tvec4( p.rgb / p.a, p.a );\n        }\n\n        vec4 getBlendColor( vec4 p )\n        {\n            return\tvec4( p.rgb * gl_TexCoord[1].x + mix( vec3( 1.0 ), p.rgb, gl_TexCoord[1].z ) * gl_Color.rgb * gl_TexCoord[1].y, p.a * gl_Color.a );\n        }\n        \n        void main()\n        {\n\n                if ( args[A_TW] \u003c= 0.0 ) {\n                        gl_FragColor = gl_Color;\n                        return;\n                }\n\n                vec4\tPixel;\n                vec4\tBlend = getBlendColor( Pixel );\n\n                gl_FragColor = Blend;\n        }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatunder%2Fss-custom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatunder%2Fss-custom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatunder%2Fss-custom/lists"}