Git Product home page Git Product logo

lumen's Introduction

DO NOT USE: This is outdated, use this instead.

Lumen

How to use

node src/index <picture>

It accepts relative and absolute paths.

Examples:

node src/index picture
node src/index media/picture
node src/index ./picture
node src/index C://folder/picture

How to colour

I have added the default atlas for 21w11a in the media folder for you to download.

First save the atlas you want to use as a picture. Secondly you want to colour in the pixels you want to be emissive, with the colour rgba(255,255,127,255) or #ffff7f in hex. Make sure to save it after editing and run it through the script. The script will spit out either output.txt which contains all the necessary if-statements you need to paste into your shader or a fully-fledged resource pack (How cool is that!). Currently the resource pack option only works for blocks that use rendertype_solid, but my first priority is to change this :D!

It assumes that vec4 vtc = vertexColor and that vec4 color = texture(Sampler0, texCoord0) * vtc * ColorModulator; in the fsh.

Compiled version

If you use the compiled version the syntax is practically the same:

lumen <picture>

Bundled version

The bundled version does not include the node runtime, hence why that must be installed on the pc

node lumen <picture>

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.