Git Product home page Git Product logo

sbox-mtoon's Introduction

sbox-MToon

Asset.Party link: https://asset.party/edison/mtoon_shader

Toon Shader with Global Illumination. Ported to s&box (Source 2).

sbox_mtoon_demo

Source Shader

https://github.com/Santarh/MToon

Usage

https://vrm.dev/en/univrm/shaders/shader_mtoon.html

Highlighted sections are functional and tested.

Other sections might or might not work. Experiment yourself. UwU

Most of the default material section inputs are not used by this shader except normal map (check "Use Normal Map" if you are using a normal map).

sbox_mtoon_usage


ALL texture inputs must have at least a color or valid texture file input.

The shader will not output the correct result if any texture has no input at all.

If some texture inputs are unused, just fill them with the default color by clicking the "Change To Color" button.

Different texture inputs might have different default colors.

sbox_mtoon_texture_notice

Limitation

  • Multi-pass rendering is not yet supported (Facepunch/sbox-issues#1067). Therefore, the outline pass has not been implemented yet.
  • Engine built-in shadowing and depth prepass (Shadow Caster) is different from Unity. The shadow under direct light looks weird or dirty. Might need to port the shadow caster.

Screenshot

sbox_mtoon_demo_1

sbox_mtoon_demo_2

sbox_mtoon_demo_3

Credits

3D model used in the screenshot

Eve by Hamuketsu (@ganbaru_sisters): https://sisters.booth.pm/items/2557029

sbox-mtoon's People

Contributors

edisonlee55 avatar

Stargazers

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

Watchers

 avatar  avatar

sbox-mtoon's Issues

rendering issues in-game

seems like the rendering is spotty with this shader, sometimes it works, sometimes it works but with no shadows, and most of the time it looks like this.
image

running on an AMD rx 6900xt with current drivers

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.