{"id":20649320,"url":"https://github.com/repalash/cc0textures-threejs","last_synced_at":"2025-04-17T00:59:15.210Z","repository":{"id":84265105,"uuid":"367592487","full_name":"repalash/cc0textures-threejs","owner":"repalash","description":"PBR Material loader from cc0textures.com for webgl projects.","archived":false,"fork":false,"pushed_at":"2024-04-03T11:56:43.000Z","size":4865,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T05:51:13.782Z","etag":null,"topics":["cc0","cc0-textures","loader","materials","pbr","threejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/repalash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-05-15T09:40:06.000Z","updated_at":"2025-03-05T12:05:12.000Z","dependencies_parsed_at":"2023-05-24T04:30:20.606Z","dependency_job_id":null,"html_url":"https://github.com/repalash/cc0textures-threejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fcc0textures-threejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fcc0textures-threejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fcc0textures-threejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fcc0textures-threejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repalash","download_url":"https://codeload.github.com/repalash/cc0textures-threejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249296032,"owners_count":21246239,"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":["cc0","cc0-textures","loader","materials","pbr","threejs"],"created_at":"2024-11-16T17:13:52.625Z","updated_at":"2025-04-17T00:59:15.181Z","avatar_url":"https://github.com/repalash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CC0Textures threejs Material Loader\n### PBR Material loader from cc0textures.\n\nDemo - \nhttps://repalash.github.io/cc0textures-threejs/\n\n![alt text](example/demo1.png \"Metal\")\n\nBrowse over 1000 PBR materials from cc0textures.com and use as `MeshStandardMaterial` or `MeshStandardMaterial` in three.js.\n\n## Usage\nCopy the files [cc0_threejs_loader.js](src/cc0_threejs_loader.js) and [cc0textures_helper.js](src/cc0textures_helper.js) to your project. \n\nSample load material directly from the link (Get it from cc0textures.com)\n```javascript\nvar mesh;\nvar loader = new CC0MaterialLoader();\nloader.load('https://cdn3.struffelproductions.com/file/CC0-Textures/download/Ground019_01fsyirl/Ground019_1K-PNG.zip', (params)=\u003e{\n    mesh.material = new MeshStandardMaterial(params);\n    // or\n    mesh.material = new MeshPhysicalMaterial(params);\n});\n```\nYou can also use indirect link like: `https://cc0textures.com/get?file=Ground019_2K-JPG.zip`\n\n![alt text](example/demo2.png \"Lava\")\n\nIt is possible to preload the data and find materials and create dynamic links (like in the example). The get complete data from [src/data](src/data)\n```javascript\nvar mesh;\nvar materials_data = `Ground019,01fsyirl,1K-JPG|1K-PNG\\nTiles064,nzs0hgad,1K-JPG\\nRocks005,fsrk453n,1K-JPG`;\n\nvar loader = new CC0MaterialLoader(new THREE.LoadingManager(), materials_data);\nloader.findAndLoad('ground', (params)=\u003e{\n    mesh.material = new MeshStandardMaterial(params);\n    // or\n    mesh.material = new MeshPhysicalMaterial(params);\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepalash%2Fcc0textures-threejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepalash%2Fcc0textures-threejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepalash%2Fcc0textures-threejs/lists"}