{"id":18238297,"url":"https://github.com/5l4vm0/transformationcubeshader","last_synced_at":"2026-04-29T14:38:47.780Z","repository":{"id":259796962,"uuid":"878176776","full_name":"5l4vm0/TransformationCubeShader","owner":"5l4vm0","description":" A Unity HDRP project showcasing a 3D transformation grid shader that dynamically scales, rotates, and changes colours of a grid of cubes in real-time, with interactive controls for mouse and touch input.","archived":false,"fork":false,"pushed_at":"2024-10-28T18:34:49.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T12:36:06.817Z","etag":null,"topics":["hdrp","interactive-visualizations","procedural-generation","realtime-effect","shader","unity","urp"],"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/5l4vm0.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":"2024-10-24T22:43:00.000Z","updated_at":"2024-10-28T18:34:52.000Z","dependencies_parsed_at":"2024-10-28T03:27:47.763Z","dependency_job_id":"07027506-ebd5-4886-920c-e389dc930cb6","html_url":"https://github.com/5l4vm0/TransformationCubeShader","commit_stats":null,"previous_names":["5l4vm0/transformationcubeshader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5l4vm0%2FTransformationCubeShader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5l4vm0%2FTransformationCubeShader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5l4vm0%2FTransformationCubeShader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5l4vm0%2FTransformationCubeShader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5l4vm0","download_url":"https://codeload.github.com/5l4vm0/TransformationCubeShader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878023,"owners_count":21011158,"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":["hdrp","interactive-visualizations","procedural-generation","realtime-effect","shader","unity","urp"],"created_at":"2024-11-05T03:04:56.983Z","updated_at":"2026-04-29T14:38:47.710Z","avatar_url":"https://github.com/5l4vm0.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transformation Cube Shader \n## Overview\nTransformation Cube Shader is a Unity project that applies transformation effects—scaling, rotation, and colour manipulation—to a 3D grid of cubes in real-time. It showcases dynamic transformations controlled programmatically and through user input, creating a visually striking effect that leverages HDRP's high-quality rendering features.\n\nhttps://github.com/user-attachments/assets/70fd8f95-6055-423b-a99c-014519bdbe06\n\n[Video Link](https://youtu.be/PaRDc6INBPk)\n\n## Features\n### High Definition Render Pipeline (HDRP), URP and build in Compatibility\n* Designed for Unity's HDRP, enabling advanced lighting, shadows, and post-processing effects for high-fidelity visuals.\n* Also compatible with URP and build in pipeline -\u003e Can run on touch-enabled devices\n\n### Dynamic Grid Setup\n* Generates a grid of cubes at runtime based on the specified gridResolution parameter.\n* Each cube has unique properties and transformations, offering a high degree of visual customisation.\n\n### Real-Time Transformation\n* Scaling: The entire grid and individual cubes scale dynamically over time, creating a pulsating effect.\n* Rotation: Continuous rotation is applied to the grid with individual cube adjustments.\n* Colour Shifts: Dynamic colour changes across the RGB spectrum, creating a vibrant animation.\n\n### Interactive Controls\n* Mouse Control: Enables rotation along with mouse input on the screen.\n* Touch Control: Supports single-touch rotation and multi-touch (pinch) scaling on touch-enabled devices. (This only works for non HDRP projects)\n\n## Scripts\n* `TransformationGrid.cs`\n\n  This script handles:\n\n  * Grid Creation: Instantiates cubes in a 3D grid with gridResolution settings.\n  * Transformation Pipeline: Manages scaling, rotation, and position transformations across the entire grid using Transformation components.\n  * Colour Updates: Adjusts the colour of each cube based on its position and time to create a shifting visual effect.\n\n* `MouseInput.cs`\n  This script enables user interaction:\n  \n  * Rotation Control: Rotates the cube with mouse movement along X and Y axes.\n  * Touch Scaling: Allows for pinch-to-scale gestures on touch-enabled devices. (Only works for non HDRP project)\n  \n## Installation and Usage\n* Clone the Repository: Download or clone this repository to your local machine.\n* Open in Unity HDRP for better visual effect: Open the project in Unity Editor with HDRP enabled (Unity version compatible with HDRP).\n    * Or open in URP/build in pipeline for touch-enable devices control\n* Configure parameters such as gridResolution, rotationSpeed, scaleSpeed and assign prefab in the TransformationGrid component to spawn your desired gameobject \n* Run: Play the scene in Unity to see the grid transformation in action.\n    * Control the cube rotation using mouse input/Input touch in the game view at run time\n\n## Dependencies\n* Unity Engine with HDRP enabled (Unity version compatible with HDRP)\n* No additional plugins are required.\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5l4vm0%2Ftransformationcubeshader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5l4vm0%2Ftransformationcubeshader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5l4vm0%2Ftransformationcubeshader/lists"}