Git Product home page Git Product logo

shaderlab's Introduction

ShaderLab

仿Unity Shaderlab的Shader跨平台编译器。使用DirectX Shader Compiler以及GLSLang编译器作为前端,SPIRV-Cross作为后端,将HLSL以及GLSL编译成DXILSPIR-VHLSLMetalGLSL

内置一个ShaderCross可执行程序,可对*.shaderlab编译成对应平台的Shader并以Json的方式输出。

环境

  • Git:安装git,配置好环境。
  • Visual Studio 2017:任意版本即可。
  • CMake:越新越好,至少3.9。
  • Python:任意版本,配置好环境。

构建

  • 打开CMakeGUI
  • Where is the source code选择Path/ShaderLab
  • Where is the build the binaries选择Path/ShaderLab/Build
  • 点击Configure,选择Visual Studio 2017 x64
  • 点击Generate
  • 点击Open Project

ShaderLab

ShaderLab is a tool designed for cross-compiling unity shaderlab to other shading languages.

Prerequisites

  • Git
  • Visual Studio 2017
  • CMake
  • Python

Building

 mkdir Build
 cd Build
 cmake -G "Visual Studio 15" ../

License

MIT License

shaderlab's People

Contributors

boblchen 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shaderlab's Issues

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.