Code Monkey home page Code Monkey logo

ledscreenshader's Introduction

LEDScreenShader

LEDScreenShader is a shader that draws realistic LED panels on Unity's Scriptable and Built-in render pipelines.
LEDScreenShaderは高品質なLEDパネルを表現するシェーダーです。

Screen Shot 2022-02-12 at 1 08 58
Currently URP and HDRP is the target render pipeline since it's developed with Shader Graph.
The built-in shader is also included with minimum functionality implemented.

Samples

  • HDR Brightness control

  • Includes multiple LED panel textures

Screen Shot 2022-02-10 at 13 59

  • Distant Fader for Moire prevention

Install

Install the package via UPM (Unity Package Manager) or from Unity Asset Store

https://github.com/llcheesell/LEDScreenShader.git?path=/Assets/LEDScreenShader#v0.1.0

Preview Release is also available at preview branch

https://github.com/llcheesell/LEDScreenShader.git?path=/Assets/LEDScreenShader#preview

Usage

Screen Shot 2022-02-12 at 1 08 58

  • Input Texture
    Apply the texture you want to project to the panel. You can put a video via RenderTexture.
    パネルに投影するテクスチャを適用します。

  • LED Texture
    Set the LED texture. This texture will be multiplied by the InputVideo.
    The package include several LED Texture.
    LEDのテクスチャを適用します。このパッケージにはいくつかのサンプルが含まれています。

  • BaseTexture/NormalTexture/AlphaMap/MaskMap
    This is the base material setting for the panel. Metalic and Smoothness will be multiplied to MaskMap.
    パネルのベースマテリアルを設定します。

  • Tiling/Offset
    Sets the number of tiles and offset of the LED panel.
    LEDテクスチャのタイリングを設定します。

  • DistantFadeStart/End
    Fades the LED texture according to the distance from the camera. This prevents moiré effects.
    カメラからの距離に従ってLEDテクスチャを無効化します。これによってモアレ効果を防ぐことができます。

  • DistantFadeBrightness
    This value allows you to adjust the brightness change caused by the fading of the LED texture.
    DistantFadeによって明るさの変化が生じたときに、HDRカラーで明るさを調整することが出来ます。

Grid parameters are currently disabled due to quality issue.

Video Guide

Note

  • This shader includes com.needle.shadergraph-markdown's markdown version of the shader interface. If you want to use clean UI version you need the package to be installed.

  • Optimized for Linear Color Space. It could be used in Gamma Color Space but the bright area tend to be clamped.

  • If you have render problems in HDRP, please check/uncheck Recursive Rendering option in Shader Graph Editor.

  • The combination use of Bloom Post Processing is recommended.

Roadmap

  • Performance optimization disabling detailed textures along with distantFader
  • Tile and Offset for InputVideo (completed in v0.1.0)
  • update Build-in Shader (completed in v0.0.6)
  • Support HDRP (completed in v0.0.5)
  • Moire prevention processing according to the distance from the camera (completed in v0.0.4)
  • Higher quality pixel textures ana materials (completed in v0.0.2)

Let me know if you have any suggestions and problems.
機能要望、提案などありましたら@llcheesellまでお知らせください。

License

Under MIT License
Credit, or notice of use is not required but much appreciated!

ledscreenshader's People

Contributors

llcheesell avatar murasaqi avatar

Stargazers

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