Giter VIP home page Giter VIP logo

shaderforunity's Introduction

ShaderForUnity

介绍

本仓库旨在学习unity shader的基础以及各种常见的shader效果

Unity 2018.1.2f1 macOS 10.13.6

目录

Assets/Basic

Unity Shader的理论知识

  • 1-Base
    • 最简单的Shader
  • 2-Light
    • 漫反射兰伯特模型
    • 漫反射半兰伯特模型
    • 高光反射模型
    • 高光放射Blinn模型
  • 3-Texture
    • 基础纹理
    • 切线空间下的凹凸映射
  • 4-PBR
    • 传统光照和PBR对比

Assets/XRay

游戏中常见的人物被障碍物阻挡后的X光效果

  • 方式1:XRay-UseCombine
    • 合并mesh,并添加额外材质的方式实现
  • 方式2:XRay-UseTwoPass
    • shader中使用两个pass

Assets/Dissolve

人物死亡后的溶解效果

Assets/Outline

描边效果

Assets/Blur

TODO:常见的几种模糊效果

Assets/Mirror

TODO:镜子效果

Assets/GhostShader

TODO:人物移动时的残影效果

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.