• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.
Custom Dual Pass Hair Shader for Unity

Toolkits + Templates Custom Dual Pass Hair Shader for Unity

Download [<1 MB]

regguise

Well-known member
Featured Contributor
Joined
Nov 20, 2021
Messages
101
Reactions
807
regguise submitted a new resource:

Custom Dual Pass Hair Shader for Unity - No more jagged edges!

Well I got seriously side tracked when attempting to write a plugin for my next port, and wrote this (with tons of help from ChatGPT lol):

A custom unity shader that gives hair softer edges with alpha blending but maintains opaqueness for major solid part of the hair.


When porting CUA hair with pre-multiplied alpha texture or alpha map, there was usually only two choices: standard unity shader with alpha cutout, or standard shader with fade/transparent.

Each option...

Read more about this resource...
 
regguise updated Custom Dual Pass Hair Shader for Unity with a new update entry:

Replaced shininess with specular intensity and smoothness. Fixed a few issues regarding specular

Changed shininess property to specular intensity.
Added Smoothness property

Now with smoothness + specular intensity you should be able to get much better highlight/gloss look now

Fixed an issue with spotlight direction calculation being wrong, causing incorrect spec highlights
Fixed an issue reported by Skynet, where albedo color was not clamped by alpha, causing too much highlight on blend passes


Huge thanks to Skynet...

Read the rest of this update entry...
 
regguise updated Custom Dual Pass Hair Shader for Unity with a new update entry:

Replaced shininess with specular intensity and smoothness. Fixed a few issues regarding specular

Changed shininess property to specular intensity.
Added Smoothness property


Now with smoothness + specular intensity you should be able to get much better highlight/gloss look now

Fixed an issue with spotlight direction calculation being wrong, causing incorrect spec highlights
Fixed an issue reported by Skynet, where albedo color was not clamped by alpha, causing too much highlight on blend passes

Consolidated duplicate code...

Read the rest of this update entry...
 
Back
Top Bottom