{"id":13663970,"url":"https://github.com/mtwoodard/TextureGenerator","last_synced_at":"2025-04-25T20:32:01.729Z","repository":{"id":45318149,"uuid":"142362613","full_name":"mtwoodard/TextureGenerator","owner":"mtwoodard","description":"3D and 2D Texture generation using the compute shaders within the Unity engine. ","archived":false,"fork":false,"pushed_at":"2018-07-28T09:40:18.000Z","size":11025,"stargazers_count":311,"open_issues_count":5,"forks_count":57,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-10T21:39:35.691Z","etag":null,"topics":["noise","noise-generator","procedural-generation","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","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/mtwoodard.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":"2018-07-25T23:09:12.000Z","updated_at":"2024-10-31T06:26:35.000Z","dependencies_parsed_at":"2022-08-28T18:52:59.846Z","dependency_job_id":null,"html_url":"https://github.com/mtwoodard/TextureGenerator","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/mtwoodard%2FTextureGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwoodard%2FTextureGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwoodard%2FTextureGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwoodard%2FTextureGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtwoodard","download_url":"https://codeload.github.com/mtwoodard/TextureGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890633,"owners_count":21503526,"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":["noise","noise-generator","procedural-generation","unity","unity3d"],"created_at":"2024-08-02T05:02:42.499Z","updated_at":"2025-04-25T20:31:56.718Z","avatar_url":"https://github.com/mtwoodard.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# Noise \u0026 Texture Generator for Unity\n3D and 2D Texture generation using the compute shaders within the Unity engine.\n![Image of 3D Noise](https://raw.githubusercontent.com/mtwoodard/NoiseGenerator/master/noiseGenerator.png)\n## Purpose\nThis project handles the creation and serialization of different 3D/2D textures created via custom compute shaders. This is done through a custom **ComputeTexture** object.\n## Why\nI created this asset in order to generate 3D textures for use in raymarching systems. In fact the example provided is intended for use with a [volumetric cloud system][clouds] as described by the wonderful people at Guerilla Games. I found 3D textures to be wonderful however the lack of support was dissapointing.\n## Use\nThere are three main scripts to know here: **ComputeTexture**, **ComputeTexture3D**, and **Noise Generator**. Note that since these scripts are based on MonoBehaviour they need to be attached to a game object, in the future I would rather these behave in a similar manner to Render Textures. In order to generate the completed texture you will need to provide the texture scripts with some information:\n* Asset Name - what you want the asset to be named at save\n* Kernel Name - the name of the compute shader kernel used to generate the final texture\n* RW Texture - name of the RWTexture that will be written to by the compute shader\n* Square Resolution - length, width, and depth resolution (i.e. 128 = 128 x 128 x 128)\n* Parameters - list of float values and their corresponding compute shader name \n* Compute Threads - thread counts specified in the compute shader above each kernel (Z is only used in the case of 3D textures)\n* Compute Shader - any compute shader that writes to RWTextures\n* **3D ONLY** Texture 3D Slicer - compute shader that slices 3D textures to 2D layers, should be provided with the repo\n## References\n* greje656 [for the wonderful compute shader noise functions][greje]\n* Nesvi [for the 3D render texture save functions][nesvi]\n\n[clouds]: http://advances.realtimerendering.com/s2015/The%20Real-time%20Volumetric%20Cloudscapes%20of%20Horizon%20-%20Zero%20Dawn%20-%20ARTR.pdf\n[greje]: https://bitsquid.blogspot.com/2016/07/volumetric-clouds.html\n[nesvi]: http://answers.unity.com/answers/1243556/view.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtwoodard%2FTextureGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtwoodard%2FTextureGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtwoodard%2FTextureGenerator/lists"}