• Hi Guest!

    Please be aware that we have released a critical security patch for VaM. We strongly recommend updating to version 1.22.0.8 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Custom Dual Pass Hair Shader for Unity

Toolkits + Templates Custom Dual Pass Hair Shader for Unity

regguise

Active member
Messages
22
Reactions
211
Points
28
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