Code Monkey home page Code Monkey logo

mcglsl's Introduction

MCGLSL

Makefile and convenient setup for building Minecraft GLSL shader resource packs.

Directory structure

.
├── LICENSE
├── m4
│   ├── custom.m4
│   └── vendor.m4
├── Makefile
├── README.md
├── pack-name
└── src
    ├── include
    └── root
        ├── assets
        │   └── minecraft
        │       ├── shaders
        │       │   ├── core
        │       │   ├── include
        │       │   ├── post
        │       │   └── program
        │       └── textures
        │           └── effect
        └── pack.mcmeta

m4 contains GNU M4 scripts that are prepended as input files for every M4 call. You can create more of them, but basic template contains only 2 files: vendor for repository default M4 macros and custom for user own macros.

src/include is an include dir that GNU M4 uses when building. Put Your shared logic here. If there is a logic that is used in both core and post shaders You should create a file under src/include and an additional file under minecraft/shaders/include with include(`your_file.glsl') line.

Warning

Directories contain the .gitkeep files so they're added to git properly. Remove it, otherwise it will be copied right to your resource-pack zip.

Note

Change the contents of pack-name to match the name of your resource pack!

Macro processing

Macros are proccesed by GNU M4. You can override the flags via M4_FLAGS env variable.

License and contributing

Licensed under MIT. Contribute via PR, issues and discussions.

mcglsl's People

Contributors

drupaldoesnotexists avatar

Watchers

 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.