Code Monkey home page Code Monkey logo

mv-shaders's Introduction

mv-shaders

Some shaders for MagicaVoxel to make some tedious tasks easier.

Installation

Download the latest release and copy the files from the shader directory of your MagicaVoxel installation.

Shaders

Grass

The grass shader currently comes in 4 different variations:

  • grass: Voxels are placed on all surfaces at random based on your selected color index in the palette. You can choose a seed and threshold. A higher threshold means that less voxels will be placed.
  • grass_color: Works very similar to the grass shader. The main difference is that you can decide what color index should be used by adjusting the Color parameter. Voxels will only be placed on voxels that are the same color value as the one you have selected in your palette. Adjusting the Color Threshold can be used to adjust how much of your selected color and the color parameter is used, giving it a bit of randomness between the two.
  • grass_offset: After making basic grass blades with the grass shader you can use this shader to add some bend to them. Based on the color you select in the palette you can decide which index is affected. Voxels are placed on top and offset by 1 in the direction you determine by adjusting the Mode. There are 8 different modes for all basic directions.
  • grass_offset_color: Similar to the grass_color shader this shader gives you more control over the color of voxels that are placed. It also comes with a similar threshold level to adjust the blend between the 2 colors that are used.

Snow

The snow shader currently comes in 2 different variations:

  • snow: This shader has two modes:
    • Mode 1: Voxels that don't have a voxel on layer above them are replaced with the color you have selected in the palette
    • Mode 2: Only voxels that don't have a voxel above them at all are replaced.
  • snow_add: This shader also has two modeswith similar differences as the snow shader. The only difference is that in this case voxels aren't replaced but voxels are added one layer above those voxels already present with the color you have selected in your palette.

Sand

The sand shader currently only has one variation:

  • sand_brush: This shader takes voxels with the selected color index's color and makes them "fall down" onto the floor below

Melt

The melt shader currently only has one variation:

  • melt: The melt shader work very similar to the sand_brush shader. The only difference is that the sand_brush only affects the selected color index while the melt shader affects all voxels

Feedback & Ideas

If there is any feedback you have or ideas for new shaders head over to the Issues tab and and create a new issue if one doesn't exist already for the same thing or send me a message on Discord knosvoxel#4773

License

This repository is licenced under the MIT license.

mv-shaders's People

Contributors

knosvoxel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.