Giter VIP home page Giter VIP logo

unityfururp's Introduction

Unity Fur URP

MIT License

This is an example of a fur shader implementation in Universal Render Pipleine. It includes the following features:

  • 3 methods (Shell / Fin / Fur Polygon)
  • 1 Pass using a geometry shader (and tessellation for Fin)
  • Lit / Unlit
  • Lighting calculation using a normal map
  • Rim lighting
  • Movement by animations

Screenshots

Shell

Fin

Fur Polygon

Compare

Move



Demo

Articles

License

The MIT License (MIT)

Copyright (c) 2021 hecomi

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.

unityfururp's People

Contributors

hecomi avatar jiaozi158 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unityfururp's Issues

Web Gl

Hi would like to use this shader in Web Gl project where it is currently not visible (although it works well in game view). I am wondering if it is possible to rewrite shader to make it work in Web Gl and if yes, which part to focus on, or delete (could it be the dynamic "wind" alike movement)? I am still a biginner in shaders for Web Gl so not sure where to spot the core of the problem. Thanks a lot for any potential help!

[Solved] "Depth" Pass doesn't work with SSAO (tested on URP 12.1)

When I was trying to apply Depth of Field post-process effect, I found that some sorting problems appear.

Using URP 12.1 (Unity 2021.2.0f1):
image

Then I opened the Shell sample scene to check if it is because of my wrong settings.

In the Frame Debugger, all the meshes using Shell Shader cannot be written into the Depth (Texture?).

Using URP 12.1 (Unity 2021.2.0f1):
image
image

I also tested the Depth in Unity 2020.3.23f1 and Depth of Field works as expected. ( Using the sample project on Github )
image
image

I've searched the Unity Forum but found nothing helpful.
Is this caused by something changed in the new URP? ( just like the main light shadow )

Single Pass Instanced VR compatibility

I have been trying to get this working in VR to no avail so far. I'm very much a noob when it comes to shaders though. Has anyone already made it work? Are there any good tutorials or up to date documentation? Everything I find seems outdated. Thanks!

No shadows

Is there a way to get shadows showing on this please? specifically I am using the shell method.

An error occurs in OpenGL/Vulkan only

I am currently using Unity 2021.2.0f1 ( URP 12.1 ).

( If not excluding the OpenGL Core and ES 3 API. )
image

There will be a compilation error when using OpenGL Core/Vulkan as target Graphics API.
image

But after deleting this structure in Common.hlsl, the error disappears. The shader ( tested Fin only ) works as expected.
image

I cannot find out which line occurs the error.
Can this error be fixed?

Animation does not move fur

I'm trying to get character animation to move the fur from this package - like in the GIF on the readme page with Unity-Chan.

However there are no examples of this in the package, and my animator is not affecting on the fur.

Is there anything special I need to do to setup the fur to respond to animated movement?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.