Comments (5)
I tried something similar using a texture for the colours and was able to use the rootUV property in Shader Graph. How does your shader work? Is the colour applied to the vertices, or is it generated at the fragment stage? If it's a vertex colour it might be possible to pass it to the fragment stage as a custom interpolator, then use it there.
from com.unity.demoteam.hair.
Thank you, extremely simple and straightforward! This does work for 1 object with 1 material. The final object I'm working with has several materials targeting certain UVs so it doesn't work correctly with this solution.
I'll have a think about how I'm approaching things to see if I really need several materials first. If I do still need them, I'll update here, otherwise this is what I was looking for so thanks again 😄
from com.unity.demoteam.hair.
Glad I could help. The package really needs some documentation and demo scenes. I'm worried it's going to be abandoned.
from com.unity.demoteam.hair.
A hair tutorial has been added to Unity Learn. Hopefully this repository will be updated soon.
from com.unity.demoteam.hair.
Labeling as documentation request. :)
from com.unity.demoteam.hair.
Related Issues (20)
- Changes in UV data HOT 2
- Generate UVs for strands in order to work with HDRP Physical Hair Shader (HDRPSamples/PhysicalHair_Ribbon) HOT 1
- Alembic scene scale ruins the UV mesh resolving HOT 1
- Line Rendering Compositing Depth pass order HOT 2
- Feature request: Dynamic strand diameter HOT 2
- NaNs in latest update of hair package HOT 2
- Inquiry about VisionPro Device Compatibility with Unity's Hair System HOT 2
- can not install from package manager
- automatic migration of newer version of the package messes up LODs
- After importing this package, it prompts "Invalid worldAABB. Object is too large or too far away from the origin." and a suggestion. HOT 3
- HQ line renderer Upscale low resolution effect
- Using Alembic curves as guide lines to generate more curves for hair strands at runtime
- Surface type Hair Strand mode tanget normal not working
- Unity is crashing HOT 9
- SDF collisions are broken HOT 6
- Changing values in Play mode sometimes breaks Hair instance
- Unreal like non physics Static mesh LOD and Auto Hair Card LOD HOT 2
- Feature request / clarification: Translation of density probe texture HOT 1
- SDF collision does not respect scale of SDF HOT 1
- Preview for some hair assets seems broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.unity.demoteam.hair.