├── .gitignore ├── Assets ├── Materials.meta ├── Materials │ ├── Textures.meta │ ├── Textures │ │ ├── floor_08nx04.jpg │ │ ├── floor_08nx04.jpg.meta │ │ ├── floor_08x04.jpg │ │ ├── floor_08x04.jpg.meta │ │ ├── fur_normal_map_by_mintenndo-d6jhgd3.png │ │ ├── fur_normal_map_by_mintenndo-d6jhgd3.png.meta │ │ ├── rug03.jpg │ │ ├── rug03.jpg.meta │ │ ├── seamless-cloth-texture-bump-map_l_55809d938719a600.jpg │ │ └── seamless-cloth-texture-bump-map_l_55809d938719a600.jpg.meta │ ├── cloth_0.mat │ ├── cloth_0.mat.meta │ ├── floor.mat │ └── floor.mat.meta ├── Models.meta ├── Models │ ├── Materials.meta │ ├── Materials │ │ ├── No Name.mat │ │ └── No Name.mat.meta │ ├── cloth.FBX │ └── cloth.FBX.meta ├── Scenes.meta ├── Scenes │ ├── Demo.unity │ └── Demo.unity.meta ├── Shaders.meta ├── Shaders │ ├── ClothShader.shader │ └── ClothShader.shader.meta ├── TestScript.meta └── TestScript │ ├── BallController.cs │ ├── BallController.cs.meta │ ├── CameraController.cs │ ├── CameraController.cs.meta │ ├── LightController.cs │ └── LightController.cs.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md └── doc └── preview.gif /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/.gitignore -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures/floor_08nx04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/floor_08nx04.jpg -------------------------------------------------------------------------------- /Assets/Materials/Textures/floor_08nx04.jpg.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/floor_08nx04.jpg.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures/floor_08x04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/floor_08x04.jpg -------------------------------------------------------------------------------- /Assets/Materials/Textures/floor_08x04.jpg.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/floor_08x04.jpg.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures/fur_normal_map_by_mintenndo-d6jhgd3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/fur_normal_map_by_mintenndo-d6jhgd3.png -------------------------------------------------------------------------------- /Assets/Materials/Textures/fur_normal_map_by_mintenndo-d6jhgd3.png.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/fur_normal_map_by_mintenndo-d6jhgd3.png.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures/rug03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/rug03.jpg -------------------------------------------------------------------------------- /Assets/Materials/Textures/rug03.jpg.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/rug03.jpg.meta -------------------------------------------------------------------------------- /Assets/Materials/Textures/seamless-cloth-texture-bump-map_l_55809d938719a600.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/seamless-cloth-texture-bump-map_l_55809d938719a600.jpg -------------------------------------------------------------------------------- /Assets/Materials/Textures/seamless-cloth-texture-bump-map_l_55809d938719a600.jpg.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/Textures/seamless-cloth-texture-bump-map_l_55809d938719a600.jpg.meta -------------------------------------------------------------------------------- /Assets/Materials/cloth_0.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/cloth_0.mat -------------------------------------------------------------------------------- /Assets/Materials/cloth_0.mat.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/cloth_0.mat.meta -------------------------------------------------------------------------------- /Assets/Materials/floor.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/floor.mat -------------------------------------------------------------------------------- /Assets/Materials/floor.mat.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Materials/floor.mat.meta -------------------------------------------------------------------------------- /Assets/Models.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models.meta -------------------------------------------------------------------------------- /Assets/Models/Materials.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models/Materials.meta -------------------------------------------------------------------------------- /Assets/Models/Materials/No Name.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models/Materials/No Name.mat -------------------------------------------------------------------------------- /Assets/Models/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models/Materials/No Name.mat.meta -------------------------------------------------------------------------------- /Assets/Models/cloth.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models/cloth.FBX -------------------------------------------------------------------------------- /Assets/Models/cloth.FBX.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Models/cloth.FBX.meta -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Scenes.meta -------------------------------------------------------------------------------- /Assets/Scenes/Demo.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Scenes/Demo.unity -------------------------------------------------------------------------------- /Assets/Scenes/Demo.unity.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Scenes/Demo.unity.meta -------------------------------------------------------------------------------- /Assets/Shaders.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Shaders.meta -------------------------------------------------------------------------------- /Assets/Shaders/ClothShader.shader: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Shaders/ClothShader.shader -------------------------------------------------------------------------------- /Assets/Shaders/ClothShader.shader.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/Shaders/ClothShader.shader.meta -------------------------------------------------------------------------------- /Assets/TestScript.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript.meta -------------------------------------------------------------------------------- /Assets/TestScript/BallController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/BallController.cs -------------------------------------------------------------------------------- /Assets/TestScript/BallController.cs.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/BallController.cs.meta -------------------------------------------------------------------------------- /Assets/TestScript/CameraController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/CameraController.cs -------------------------------------------------------------------------------- /Assets/TestScript/CameraController.cs.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/CameraController.cs.meta -------------------------------------------------------------------------------- /Assets/TestScript/LightController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/LightController.cs -------------------------------------------------------------------------------- /Assets/TestScript/LightController.cs.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/Assets/TestScript/LightController.cs.meta -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.3p3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ClothShaderDemo 2 | 3 | 一种可以双面接受阴影,并且有透光效果的布料shader方案 4 | 5 | ![](doc/preview.gif) -------------------------------------------------------------------------------- /doc/preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AsehesL/ClothShaderDemo/HEAD/doc/preview.gif --------------------------------------------------------------------------------