• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. 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.
Custom Dual Pass Hair Shader for Unity

Toolkits + Templates Custom Dual Pass Hair Shader for Unity

Download [0 MB]

regguise

Well-known member
Joined
Nov 20, 2021
Messages
51
Reactions
523
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