Giter Site home page Giter Site logo

mob-sakai / shinyeffectforugui Goto Github PK

View Code? Open in Web Editor NEW
370.0 20.0 63.0 4.77 MB

Shiny effect of uGUI, which does not need mask or normal map.

Home Page: https://github.com/mob-sakai/ShinyEffectForUGUI

License: MIT License

Shell 19.55% C# 54.95% ShaderLab 25.50%
unity unity3d ugui effect shiny shinning ui shader

shinyeffectforugui's Introduction

ShinyEffectForUGUI

NOTE: This project has been integrated into UIEffect, so we are NOT continuing development in this repository.

Shiny effect of uGUI, which does not need mask or normal map.
Since useless draw calls are suppressed, performance is good!

image



<< Description | Demo | Download | Usage | Development Note | Change log >>





Description

ShinyEffectForUGUI applies shiny-effect to uGUI element (Image, RawImage, Text, etc...) WITHOUT Mask component .
This will suppress extra draw calls and improve performance.

compare

  • With-mask method

    • For example: ShineEffect from unity-ui-extensions
    • 3 GameObject: Graphic + Mask + ShineEffect (masked)
      • image
    • At least 3 draw calls(1:Stencil on, 2:Draw graphic, 3:Stensil off), FOR EACH ui elements with shiny effect
    • Artifacts on the edges!
  • Proposal: Without-mask method

    • shader applies shiny effect
    • 1 draw dall
    • Will be batched as possible



Features
  • No Mask component
  • Easy to control in inspector
    inspector
  • Supports AnimationClip
  • Will be batched as possible
  • Play effect from script (v0.4.0)
    • ShinyEffectForUGUI.Play(duration, updateMode)
      button
  • Improve Visual quality (v0.4.0)
    image
    • The effect does not use other images such as normal map.





Demo

demo

WebGL Demo





Usage

  1. Download ShinyEffectForUGUI.unitypackage from Releases.
  2. Import the package into your Unity project. Select Import Package > Custom Package from the Assets menu.
  3. Add ShinyEffectForUGUI component to UI element (Image, RawImage, Text, etc...) from Add Component in inspector.
  4. Choose effect type and adjust values in inspector.
  5. Enjoy!
Requirement
  • Unity 5.5+ (included Unity 2017.x)
  • No other SDK are required





Development Note

What's doing?





License

  • MIT
  • © UTJ/UCL

Author

mob-sakai

See Also

shinyeffectforugui's People

Contributors

mob-sakai 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shinyeffectforugui's Issues

add OnComplete event

Hi,

Is it possible to add an "OnComplete" event to the ShinyUI component please? Would be very usefull.

Or if its possible to modifying the script on my own I would do it but don't know if it's possible.

v0.4.0 release summary

Visual quality of the effect has been improved greatly!
Of course, the effect does not use other images such as normal map :)
image

Question regarding image with child image and Shiny UI

Hello,

Very cool asset :)

I was wondering, i have this blank button image and as a child i place an icon image.

[Blank button image] - Parent
         [Icon Image] - Child

If i apply Shiny UI to parent, obviously it will not affect the child icon image.

Is there a way to allow Parent Shiny UI effect all image children or at least one child?

Please expose an option to allow this to work with transparent color

Basically what I am trying to achieve is placing a shine over a set of elements, but limit it by the alpha of a sprite/texture.

That would mean that that sprite/texture would be rendered on top, however I would want to set it's color to transparent and still have the shine show. This should be done in the shader, however I am unable to modify it, due to the hashing system that is implemented.

If there is something I am missing please DM me.

Cheers.

Improve Visual quality

Add reflective parameter.
The effect does not use other images such as normal map.

Before:
image

After:
image
image

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.