Code Monkey home page Code Monkey logo

xelf.magicavoxel.shaders's Introduction

🆇🅴🅻🅵.MagicaVoxel.Shaders

  • Shaders for MagicaVoxel
    • Tested with MagicaVoxel 0.99.1a for Windows

Basic Informations

MagicaVoxel shader is a processor of vox model object. Installed MagicaVoxel shader can be used from the Console in MagicaVoxel.

Installation

Install the shader by copying the file from the 📁shader directory in this project into the 📁shader directory of your MagicaVoxel installation.

Groupable Blur

  • 🗎blur.txt: Shader file of the Groupable Blur
  • Will assist you:
    • To make a gradient.
    • To add an antialiasing effect.
    • To add a rounded corner effect.
  • Keeps it shape:
    • Empty voxel to empty voxel
    • Valid voxel to valid voxel
  • Palette can group:
    • Each group will not blur into each other.
    • Colors in the same group only will blur.
  • Shader can only access voxels:
    • Needs preparation of a proper palette you want.

Console Commands

  • xs blur color group stride center weight bias
    • color group stride: [1256] (default: 1)
    • center weight bias: [-1256] (default: 0)

Notes

  • Empty voxels (color index: 0) are grouped into -1.
  • Other valid voxels (color index: 1255) are grouped into 0+.

Command Examples

  • xs blur 8
    • Palette grasped 8tones × 32groups
    • Each row on the palette UI is an independent group
  • xs blur 256
    • Palette grasped 256tones × 1group
    • For a grayscale-like palette (255 tone levels + 1 empty)
  • xs blur 8 4
    • A bit large center weight bias=4 will work as an antialiasing effect / a rounded corner effect.
  • xs -n 3 blur 8
    • In the following sample, by one time run, the original model will become into the result of step 3.

Samples

  • blur-sample.vox: A sample vox file for the Groupable Blur
    • original➡🔨xs blur 8step 1➡🔨xs blur 8step 2➡🔨xs blur 8step 3
step 0
original
step 1
step 1
step 2
step 2
step 3
step 3

xelf.magicavoxel.shaders's People

Contributors

xelfia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

abstractor97

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.