Skip to content

FishingCactus/ShaderShaker2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShaderShaker2

Shader Shaker has been developed to solve our two main problems with shader development :

  • The multiple languages our engine needs to support
  • The combinational number of shader with the supported rendering technique

How it works

The architecture is simple :

  1. The HLSL files are converted to an AST using a ANTLR parser.
  2. The AST is then processed, cleaned and optimized.
  3. Finally, a writer generates code.

How to build

Premake is used as project generator. To build the project, follow those steps :

cd src/hlsl_parser      # go to HLSL parser directory
./generate_parser.sh    # generate the HLSL parser (use .bat file for Windows systems)
premake gmake           # or any target you want to use ( vs2010, xcode4, ... )

You now have a valid project to build.

About

Shader generation tool that uses semantic as chunk combination parameter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published