Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EsProgram/InkPainter
Texture-Paint on Unity.
https://github.com/EsProgram/InkPainter
c-sharp csharp paint shader shaderlab texture-paint unity
Last synced: about 2 months ago
JSON representation
Texture-Paint on Unity.
- Host: GitHub
- URL: https://github.com/EsProgram/InkPainter
- Owner: EsProgram
- License: mit
- Created: 2016-09-15T13:59:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T05:26:37.000Z (over 6 years ago)
- Last Synced: 2024-10-30T02:36:56.892Z (about 2 months ago)
- Topics: c-sharp, csharp, paint, shader, shaderlab, texture-paint, unity
- Language: C#
- Homepage: https://esprogram.github.io/InkPainterDocument/
- Size: 138 MB
- Stars: 1,234
- Watchers: 46
- Forks: 170
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
------------
# InkPainter
[![GitHub license](https://img.shields.io/github/license/EsProgram/InkPainter.svg)](https://github.com/EsProgram/InkPainter/blob/master/LICENSE.txt)
[![release](https://img.shields.io/badge/release-nv1.2.1-blue.svg)](https://github.com/EsProgram/InkPainter/releases)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/EsProgram/InkPainter/pulls)[![GitHub issues](https://img.shields.io/github/issues/EsProgram/InkPainter.svg)](https://github.com/EsProgram/InkPainter/issues)
[![GitHub forks](https://img.shields.io/github/forks/EsProgram/InkPainter.svg)](https://github.com/EsProgram/InkPainter/network)
[![GitHub stars](https://img.shields.io/github/stars/EsProgram/InkPainter.svg)](https://github.com/EsProgram/InkPainter/stargazers)
[![Twitter](https://img.shields.io/twitter/url/https/github.com/EsProgram/InkPainter.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FEsProgram%2FInkPainter)This asset allows you to Texture-Paint on Unity.
Selling at [Asset Store](https://www.assetstore.unity3d.com/jp/#!/content/86210).Document is [here](https://esprogram.github.io/InkPainterDocument/).
## How to use
Attach a "InkCanvas" to the object you want to paint and call the Paint method from any script.
ex)
```SamplePainter.cs
using Es.InkPainter;public class SamplePainter : MonoBehaviour
{
[SerializeField]
private Brush brush;private void Update()
{
if(Input.GetMouseButton(0))
{
var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hitInfo;
if(Physics.Raycast(ray, out hitInfo))
{
var paintObject = hitInfo.transform.GetComponent();
if(paintObject != null)
paintObject.Paint(brush, hitInfo);
}
}
}
}
```
See documentation and movies for more details.## Extended Asset
It is an asset of another repository using InkPainter.
* [WaveformProvider](https://github.com/EsProgram/WaveformProvider)
## Movies
Liquid paint affected by normal map.
InkPainter demo movie(Click image).
InkPainter rainy day camera effect(Click image).
InkPainter fluid paint setup(Click image).
InkPainter simple paint setup(Click image).
InkPainter setup(Click image).
InkPainter how to use(Click image).## Sponsor
# The MIT License
Copyright (c) 2017 Es_Program
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.