Giter VIP home page Giter VIP logo

glsl2hlsl's Introduction

glsl2hlsl

Slightly cursed WIP ShaderToy to Unity (ShaderLab) transpiler.

Sorry if the code gives you an aneurism.

Features

  • Converts a fairly decent chunk of shadertoy shaders to usable unity shaders
  • Can attempt to automatically find and extract properties from the shader and put then in the inspector
  • Can attempt to automatically make raymarched/raytraced shaders 3D
  • Can download shaders directly from the shadertoy API given a link
  • Synthesizes a usable unity material and .meta file when using download feature

Some cool shaders to try it on

Fractal land by Kali

Protean clouds by IQ

Fractal pyramid by bradjamesgrant

Phantom star by kasari39

To do

  • Better support for preprocessor directives in any context
  • Multiline macro support
  • Implement various missing sampler-related functions such as textureSize, textureLodOffset etc.
  • A few properties defined by shadertoy (iDate, iChannelResolution...) are missing
  • Refactor

Build

cargo build

Usage

glsl2hlsl <fileToConvert>

Or just use the website :P

glsl2hlsl's People

Contributors

pema99 avatar nyrox 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.