{"id":18020056,"url":"https://github.com/polygonjs/polygonjs-react-three-fiber-raymarching-example","last_synced_at":"2026-02-03T12:06:26.087Z","repository":{"id":109051092,"uuid":"556791462","full_name":"polygonjs/polygonjs-react-three-fiber-raymarching-example","owner":"polygonjs","description":"Example of a raymarching material created with Polygonjs integrated to a react-three-fiber scene","archived":false,"fork":false,"pushed_at":"2022-10-24T14:33:20.000Z","size":5254,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-28T14:10:27.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"GLSL","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/polygonjs.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}},"created_at":"2022-10-24T14:18:40.000Z","updated_at":"2022-10-30T07:08:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6705c3b-1228-4c1d-b4a2-9e972151216c","html_url":"https://github.com/polygonjs/polygonjs-react-three-fiber-raymarching-example","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"2f44af2b0a4d617accc044d093981196182603c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polygonjs/polygonjs-react-three-fiber-raymarching-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fpolygonjs-react-three-fiber-raymarching-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fpolygonjs-react-three-fiber-raymarching-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fpolygonjs-react-three-fiber-raymarching-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fpolygonjs-react-three-fiber-raymarching-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polygonjs","download_url":"https://codeload.github.com/polygonjs/polygonjs-react-three-fiber-raymarching-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fpolygonjs-react-three-fiber-raymarching-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263232727,"owners_count":23434727,"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-10-30T05:13:26.221Z","updated_at":"2026-02-03T12:06:21.007Z","avatar_url":"https://github.com/polygonjs.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raymarching + React-Three-Fiber\n\nThis repo demonstrates how to add raymarching materials created with [Polygonjs](https://polygonjs.com) to any react-three-fiber scene, using the [Polygonjs R3F component](https://github.com/polygonjs/polygonjs-react-three-fiber).\n\n![Raymarching_with_threejs](https://github.com/polygonjs/polygonjs-react-three-fiber-raymarching-example/blob/main/assets/r3f.gif?raw=true)\n\n\nSee [live example](https://polygonjs.com/demo?example=bynode/mat/raymarchingbuilder/refractions) or learn more about [Polygonjs](https://polygonjs.com)\n\n# How it works\n\n1. install polygonjs-editor with `npm install polygonjs-editor`\n\n2. create and save [your first scene](https://polygonjs.com/docs/getting_started) using the editor. This will save several files under `src/polygonjs/scenes/\u003cyour scene name\u003e`.\n\n3. import the polygonjs scene, using the created files.\n\n``` ts\nimport {PolygonjsScene} from '@polygonjs/react-three-fiber';\nimport {loadScene_scene_01} from './polygonjs/scenes/scene_01/autogenerated/loadScene';\nimport {\n\tPolySceneWithNodeMap_scene_01,\n\tPolySceneProps_scene_01,\n} from './polygonjs/scenes/scene_01/autogenerated/PolySceneWithNodeMap';\n```\n\n4. mount the \u003cPolygonjsScene/\u003e component\n\n``` ts\n \u003cPolygonjsScene\u003cPolySceneWithNodeMap_scene_01, PolySceneProps_scene_01\u003e\n    sceneName={'scene_01'}\n    loadFunction={loadScene_scene_01 as any}\n/\u003e\n```\n\nAnd you're done. Check [index.ts](./src/index.tsx) to see how it is set up in this repository. And note that while this demonstrates it in typescript, it works just as well in javascript.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonjs%2Fpolygonjs-react-three-fiber-raymarching-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolygonjs%2Fpolygonjs-react-three-fiber-raymarching-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonjs%2Fpolygonjs-react-three-fiber-raymarching-example/lists"}