Code Monkey home page Code Monkey logo

matedit's Introduction

MatEdit for Unity3D

Introduction

MatEdit is a script which you can use to make good looking custom editors for shaders very fast and without any affort.

MatEdit Version 1 is obsolete. There won't be any updates or improvements in the future. I am working on MatEdit Version 2 at the moment which will come with most of the missing features as well as some improvments and additional features. MatEdit V2 is developed with a lot of UI and UX research and tests which will take longer than expected. Furthermore MatEdit Version2 will work differently. It is developed from scratch with an entirely different approach. Stay tuned on twitter (/NoxNorthwind) or on marian-brinkmann.com

Basic Steps:

  1. Create a new custom editor script for a shader of your choice and put it into an editor folder somewhere in your project.
  2. Add CustomEditor "<CustomEditorScript>" in front of the last brace of your shader.
  3. Use the namespace Northwind.Editor.Shader to access MatEdit
  4. In the OnGUI function access the target material and set it as scope material in MatEdit by using: MatEdit.SetScope(<TargetMaterial>);
  5. Use one of the included MatEdit functions to set a value in your shader

Features

Groups

  • Static Group
  • Toggle Group
  • Fold Group

Texture Fields

  • Texture Field
  • Normal Map Field
  • Tiling Field // Basically Vector Field
  • Offset Field // Basically Vector Field

Simple Fields

  • Int Field
  • Enum Field
  • Float Field
  • Slider Field
  • Min Max Slider Field
  • Toggle Field
  • Color Field
  • Float As Vector Field
  • Vector Field

Special Fields

  • Animation Curve Field
  • Gradient Field
  • Color Curves Field

Tools

  • Context Menu: Create Custom Editor
  • Context Menu: Create Custom Editor (AUTO) - converts property block into custom editor

Maybe on Roadmap

  • Float Array Field
  • Int Array Field
  • Vector Array Field
  • Group Reset Button
  • Group Context Menu

Description Key

Symbol Meaning
+ Added to Project
& Change of function
! Marked as obsolet
- Removed

matedit's People

Watchers

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