Giter Site home page Giter Site logo

josh015 / alloy Goto Github PK

View Code? Open in Web Editor NEW
274.0 30.0 27.0 3.49 MB

Alloy physical shader framework for Unity.

Home Page: https://alloy.rustltd.com/

License: MIT License

C# 11.09% ShaderLab 66.58% HLSL 22.33%
unity3d hlsl csharp shaders alloy unity transmission skin graphics shaderlab

alloy's Introduction

Alloy

This code is provided AS IS with no support guarantees beyond attempting to keep pace with new Unity releases.

Pre-Import Checklist

Alright, so we're ready to jump into some Alloy goodness, but there's a few things we want to make sure we're ready for depending on what the state of your project is, and what past version of Alloy (if any) are in your project. First and foremost, if you are importing a new version of Alloy into a project where any prior version of Alloy existed, it's probably a good idea to have a backup of it (manual or version controlled), just in case something goes awry.

Import Steps

  1. Ensure you are in a new blank scene.
  2. ENSURE that there are NO script errors in your console preventing unity from recompiling assemblies. Alloy will NOT function properly (including our editor scripts), if you attempt to import with standing errors in your project.
  3. Import the Alloy package from the Unity Asset Store download window if you have not yet done so.
  4. The first thing you'll notice in the Alloy folder is that there is a sub-directory called 'Packages'.Within this directory there will be a package named Alloy3xx_ShadersAndEditorCore. Import this package first.
  5. If you are a Windows user, and wish to use Alloy Tesselation Shaders (DX11 only), import the Alloy3xx_SM5Shaders folder. In general these shaders take a bit longer to compile/import, so we suggest only importing the variants you intend on using.
  6. Lastly, if you'd like to check out our shweet samples, import the Alloy3SampleAssets package. Enjoy!

Setting Up Your Project

Before using Alloy, there a couple things you MUST set up in your project:

  1. Open Edit->Project Settings->Graphics.
  2. Set the 'Deferred' setting to 'Custom shader'.
  3. Open the picker below, and select the 'Alloy Deferred Shading' shader.
    • See "Advanced Setup" section for additional options.
  4. Set the 'Deferred Reflections' setting to 'Custom shader'.
  5. Open the picker below, and select the 'Alloy Deferred Reflections' shader.
  6. Open Edit->Project Settings->Player.
  7. Open the 'Other Settings' rollout.
  8. Set 'Color Space' to 'Linear'.
  9. If you wish to use many lights, set 'Rendering Path' to 'Deferred'.
  10. Select your camera in your scene.
  11. Check the 'HDR' box.
  12. Open Edit->Project Settings->Quality.
  13. Ensure 'Anti-aliasing' on the Quality Setting your are using is set to 'none', or HDR will be silently disabled on your camera (ಠ_ಠ THANKS UNITY ಠ_ಠ).
  14. Go to Window->Alloy->Light Migrator and wait for it to finish updating your scene's existing lights.
  15. Now save your scene.

Advanced Setup

To use the Skin, SpeedTree, and/or Transmission shaders in deferred mode, you MUST do the following:

  1. Open Edit->Project Settings->Graphics.
  2. Set the 'Deferred' setting to 'Custom shader'.
  3. Open the picker below, and select either the 'Alloy Deferred Skin' or 'Alloy Deferred Transmission' shader based on your performance requirements.
    • 'Alloy Deferred Transmission' covers the SpeedTree and Transmission shaders.
    • 'Alloy Deferred Skin' covers the Skin, SpeedTree, and Transmission shaders.
  4. Go to the "Hierarchy" tab, and select your camera.
  5. Add the component "Alloy/Alloy Effects Manager".
  6. Add or remove the "Skin Scattering" and/or "Transmission" tabs to reduce cost.
  7. Set your materials to the "Alloy/Human/Skin" or "Alloy/Transmission/*" shaders.

Documentation

  1. Go to Window->Alloy->Documentation.
  2. Change windows to the newly opened browser tab.

Now you're ready to play!

alloy's People

Contributors

josh015 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alloy's Issues

Camera problem

Hi.I have a problem with camera.When i add Alloy shader and set up everythin like you describe i don't have camera preview window when i select my camera.Can you tell me why?I have only one camera in my scene.

Latest version

Hi, is this repo same version with the one on Asset Store. They're both 4.30 but store page says go to repo for the latest.

Thank you.

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.