Git Product home page Git Product logo

amplifyshaderfunctions's Introduction

AmplifyShaderFunctions

gif gif

My additionnal functions for shading in Unity, using Amplify Shader plugin.

AMPLIFY SHADER FUNCTIONS TYPES

Shader types

There is 5 types of functions made :

  • Random : some functions for fast randomization with Float and Vec2.
  • Shapes : some functions to help you create basic shapes (circle, square, triangle, rect, and with/without edges)
  • Waves : some functions to help you making gradients ou lerp values from A to B with a precise wave shape.
  • Transform : nodes to transform space and time. Can't do coffee at the same time.
  • Other : wip functions without a type (like amod).

Nodes usage

All nodes are designed the same way :

  • 0-1 value mean 0 for nothing and 1 for max default value. ex : for a circle 0 for radius means an invisible cricle and 1 a big circle with edges touching the uvs.
  • when an input "UVs" can be used, you need to add a node Texture Coordinate or a transformation of uvs.

SHAPES SPECIALS

Basic usage of Shape Circle

gif Most of shapes are designed on this first node. The pivot can change the center of the shape. UVs means a representation of space and can be used with Texture Coordinate. Radius means the size of the circle.

Amod function

gif Thanks to Flopine & Koltes, Amod function is a way for duplication shapes in a circle. It uses polar coordinates. For simplification : you don't duplicate the shape, you "duplicate" the space where the space will be created.

UPDATES

2018-10-01

Add Transform type Remove Rotate2D node (useless), use Rotator instead with value mul PI Move amod to Transform type Add 2 nodes : Xmirror & YMirror

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.