Code Monkey home page Code Monkey logo

shadertoy-to-unity-urp's Introduction

patreon

ko-fi

shadertoy-to-unity-URP

I will convert the hottest shaders from shadertoy to Universal SRP shader. I will try to update often; so watch it and support me for more to come :)

Licence

As you know shadertoy projects are licenced as Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please look into the each shader code if it has another licence. Otherwise above licence must be considered!

Just Run It

I have separated the each scenes (and materials). So just open the scene and press play :)

Usage for simple (none-textured) etc.

Just select the Plane on the sample scene, and change it's material shader (by shadertoy name or shadertoy end of link like 4dXGR4)

github-large

github-large

github-large

Usage for textured

Shaders has slots for texture (channel) inputs. So if shadertoy has a texture (noise etc.) you have to attach the correct texture to correct slot. As an example https://www.shadertoy.com/view/4dXGR4 This shader has a texture on channel0 like below:

github-large

So on our samples, after selecting the correct shader; you have to put the same texture (from "Textures" folder) to channel 0 as below, that is it :)

github-large

Usage for movies

If shader uses a movie clip, attach the video file (from "Movies" folder) to "Video Player"s "Video Clip" property which is on "Plane" object (and be sure script is enabled); then select the correct channel on the "Material Property" of the script like below:

github-large

Mouse events

Mouse events are send to the shaders automatically by the "Mouse Pos to Shader" script. Hold the left mouse button on play mode to see it (if shader has mouse implementation in it).

Last words

Some shaders even seems more beautiful, but some not (maybe because float operations etc. i do not know). So please do not write me if it does not behave same :) I hope they will become usefull for you to learn shaders and math :)

shadertoy-to-unity-urp's People

Contributors

umutbebek avatar

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.