Skip to content

subrodrigues/LitTransparentDepthFader-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Lit Transparent Depth Fader | Shader for Unity

LitTransparentDepthFader shader provides support for Transparency and (Camera) Depth Fade, with shadows and all light types found in the physically based standard lighting model. Metallic and Smoothness/Glossiness adjusted by sliders.

How to Use

Place the LitTransparentDepthFader.shader file within your project's Assets folder. Then, in the desired Material Shader select Custom/LitTransparentDepthFader.

Additional Info

Inspector

Inspector

  1. Color tint texture and add alpha
  2. Smoothness/Glossiness slider to control the spread of highlights on the surface
  3. Metallic slider controls the reflection of the environment, when increased the material's albedo colour becomes less visible
  4. Depth Near controls the near camera length at which the material starts to fade
  5. Depth Far controls how far the surface can get away from the camera before starting to fade
  6. Depth Power controls the depth strength

Examples

DepthFader-ON | Transparency-ON

DepthFaderON_TransparencyON

DepthFader-ON | Transparency-OFF

DepthFaderON_TransparencyOFF

DepthFader-OFF | Transparency-OFF

DepthFaderOFF_TransparencyOFF

DepthFader-OFF | Transparency-OFF | No Light

DepthFaderOFF_TransparencyOFF_NOLIGHT

DepthFader-ON | Transparency-ON | Multiple Lights

LitTransparentDepthFader.mp4

License

Copyright (c) 2023 Filipe Rodrigues, filiperodrigues.net, subtales.studio

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.

About

A shader with support for Transparency and (Camera) Depth Fade, with shadows and all light types (Metallic and Smoothness/Glossiness)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors