Coder Social home page Coder Social logo

unified-renderer-unity's Introduction

UnifiedRenderer - Banner SVG

Stop creating new materials just to change color of the objects, modify them right from the component!

Unified Renderer

Unified Renderer is simple plugin for Unity, that allows to assign material properties right from object (instead of material).

Unified Renderer is based on Unity's 'MaterialPropertyBlock' class, that allows to pass different data to each Renderer/object.

demo

How to install

Simply add the following git url in package manager (please read further notes):
https://github.com/lukakldiashvili/Unified-Renderer-Unity.git

For production, please find specific version in releases tab, and install latest package with url from there.

Features

  • SRP independent, works with all render pipelines.
  • Set/Get property values per renderer
  • Per-material or per-renderer (global for renderer) properties

Examples

unified-renderer-demo

Note: each ball has the same default material assigned. this demo is included in the project.

Installation and Usage

  • Install Unified Renderer as upm package (how to: https://docs.unity3d.com/Manual/upm-git.html)
    or install manually by putting repository into the project
  • You can find settings inside project settings, under 'Unified Renderer' tab
  • Add Unified Renderer component to object with supported renderer attached
  • Add property you want to modify from the component
  • Edit/View values from the inspector of from the scripts

unified-renderer-unity's People

Contributors

lukakldiashvili 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

Watchers

 avatar

unified-renderer-unity's Issues

Not optimized for SRP compatibility

As it is right now, the UnifiedRenderer component forces a dedicated drawcall for each Renderer it's attached to.

Proposal: in order to make the UnifiedRenderer compatible with the SRP batcher, the code should modify the sharedMaterials directly, without using MaterialPropertyBlocks.

More info in the official doc for the SRP batcher.

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.