Search Unity

Color Box - UV Free Color Gradient Shader

Discussion in 'Assets and Asset Store' started by tsangwailam, Aug 10, 2016.

  1. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    4.png

    >>> Buy on Asset Store : http://u3d.as/xzn <<<

    ColorBox is a shader pack which alllow you to coloring your model without texture. You can define directional color from 6 directions and fills with solid color or gradient.

    9.png

    The shader pack includded 2 shaders. ColorBoxBasic is a shader for coloring object. ColorBoxSkybox is a shader to add color/gradient to the background.

    6.png

    8.png

    Highlighted ColorBoxBasic Shader Features

    - UV-Free
    - Unlit Shader
    - Solid, 2 colors and 3 colors gradient
    - Gradient in each side
    - Rotation of gradient fill
    - Full control on gradient position

    - Object, world and Screen space gradient
    - Support Texture
    - Outline

    - Receive/Cast Shadow
    - Receive Diffuse Light
    - Reveice Ambient Light
    - Lightmap Support
    - Specular Support

    Highlighted ColorBoxSkybox Shader Features

    - solid, 2 colors and 3 colors gradient
    - Rotation of gradient fill
    - Full control on gradient position
    - World or Screen space gradient

    Other Features

    - All source code included
    - Support both Unity 3d personal and pro
    - Included working demo scene shown in screen shot.

    Asset Store : http://u3d.as/xzn
    WebGL Demo : http://livedocs.digicrafts.com.hk/unity/colorbox/demo/
     
    Last edited: Oct 17, 2016
  2. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Scene create with ColorBox
    7.png 10.png
     
  3. shamsfk

    shamsfk

    Joined:
    Nov 21, 2014
    Posts:
    307
    Hello! I have several questions:
    • How does it compare to COLR?
    • Is it mobile optimised / tested?
    • Will it batch?
     
  4. shamsfk

    shamsfk

    Joined:
    Nov 21, 2014
    Posts:
    307
    Can you please answer?
     
  5. oleyb

    oleyb

    Joined:
    Nov 8, 2012
    Posts:
    15
    I'm not the creator, but I purchased the asset and have done some research comparing this to "Colr" and "Marvelous Technique". All three plugins seem to serve a similar purpose, and all three claim to be mobile optimized.

    Key differences between ColorBox and Colr are that ColorBox supports three-color gradients, rather than just two, you can change the direction of the gradient, and you can use image textures along with the lighting effects in the materials.

    The main advantage of both Colr and ColorBox over "Marvelous Technique" is that you can specify the lighting color in ALL directions (front, back, top, bottom, left, and right) whereas in "Marvelous Technique" it is just top, front, right, and rim which in the end is far less flexible. I initially bought "Marvelous Technique" because their marketing is good and it seemed more feature rich, but I ended up switching to ColorBox for greater control and I'm much happier.

    I could be misunderstanding how to best use the shader/materials, but it seems like none of the three assets are able to be batched because you need a separate material for each different light configuration using the shader.
     
    frbrz likes this.
  6. shamsfk

    shamsfk

    Joined:
    Nov 21, 2014
    Posts:
    307
    First of all, thank you for your reply!

    As of the batching question, I meant to ask if instances of the same object will batch?
    Perhaps it's me not knowing something, but it looks like objects with some shaders/materials are auto batched and some are not.
     
  7. geekchau

    geekchau

    Joined:
    Jun 13, 2013
    Posts:
    16
    Hey @tsangwailam, I just noticed your username and remembered you from the starling forum - nice to see you here.
    If I hadn't already bought a gradient shader package, I would have definitely gone for yours as it looks brilliant!
     
  8. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    @shamsfk Sorry, didn't got notify for the thread. Thanks @oleyb for the description.

    For some main different compare with Colr,

    - Support 3 colors gradient.
    - Gradient supported on all six direction.
    - Rotation of gradient
    - Base Color by Texture
    - Specular/Ambient Color
     
  9. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    @shamsfk For batching, the shader will use different shader variant depends on settings. So, they treat as different shader and will not do batching.
     
  10. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Updated. We add a outline feature in ColorBox

    11.png
     
  11. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
  12. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    24hrs Sale now. 21% off.
     
  13. haleler51

    haleler51

    Joined:
    Apr 9, 2015
    Posts:
    30
    I bought the asset and it's mostly what I hoped for. One question: does it support shadows for deferred rendering?
     
  14. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Yes, it should be supported.
     
  15. Zymes

    Zymes

    Joined:
    Feb 8, 2017
    Posts:
    118
    Can this package make trees that are normally one material for leaves in low poly look like this: ?
     
  16. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Here a quick test.
    Screen Shot 2017-03-11 at 8.16.58 PM.png
     
    shamsfk likes this.
  17. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    557
    This asset is awesome. I can do lighting FX without any lights in the scene (great for mobile)
    Setting _BackColor2 after enabling it at runtime seems to always select the same color, may be a bug somewhere. I have been getting around this by setting the default color with some linear interpolation. Will post a better explanation when I can look at my code.

    SmartSelectImage_2017-03-15-22-18-44.png
     
    Last edited: Mar 16, 2017
  18. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Could you have more details on the bug?
     
  19. JesterGameCraft

    JesterGameCraft

    Joined:
    Feb 26, 2013
    Posts:
    452
    Hi,

    What's the performance like for this shader compared to Unity mobile unlit shader?

    Regards,
    Jester
     
  20. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    ColorBox is a unlit shader. So, it performance is like other unlit shader. But depends on how many features enabled.
     
  21. JesterGameCraft

    JesterGameCraft

    Joined:
    Feb 26, 2013
    Posts:
    452
    Thanks
     
  22. lusho_games

    lusho_games

    Joined:
    Jun 4, 2011
    Posts:
    63
    Hello,

    Is there support for Unity 2018.3?
     
  23. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    It support 2018.3. But not using Render Pipeline.
     
  24. _eternal

    _eternal

    Joined:
    Nov 25, 2014
    Posts:
    304
    To clarify, this doesn't support radial gradients, does it?
     
  25. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    Sorry, it don't support radial in the mean time.
     
  26. Alessandro-Previti

    Alessandro-Previti

    Joined:
    Nov 1, 2014
    Posts:
    30
    Hi, do you plan LWRP support?
     
  27. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    557
    LWRP is dead... i'd rather know if URP support is planned.
     
  28. Alessandro-Previti

    Alessandro-Previti

    Joined:
    Nov 1, 2014
    Posts:
    30
    I suppose you do not mean Ukrainian Radical Party?
    What is URP?
     
  29. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    557
  30. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    It do support LWRP in 2019.
     
  31. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    We are working to support it.
     
    spryx likes this.
  32. DustyDev

    DustyDev

    Joined:
    Sep 23, 2015
    Posts:
    40
    I emailed support last Wednesday, and have not heard back:

    Hello there,

    I purchased ColorBox today and integrated it into my game this morning. Everything was looking great in the editor, and I made a test build. Unfortunately I noticed a significant framerate drop in the build on our Samsung Galaxy S4. I was hoping to use your shader for everything in the game, but the framerate drop is not shippable. Here are some quick stats for easy comparison.

    • Unity Standard Shader
      • 35 FPS (Average)
      • 186 SetPass Calls
      • 335 Draw Calls
    • Unity Unlit Shader
      • 70 FPS (Average)
      • 38 SetPass Calls
      • 38 Draw Calls
    • ColorBox Basic Shader with 6 side 2 color gradient
      • 27 FPS (Average)
      • 38 SetPass Calls
      • 157 Draw Calls
    • ColorBox Shader with 6 side 2 color gradient and specular
      • 21 FPS (Average)
      • 41 SetPass Calls
      • 164 Draw Calls

    I expected this shader to be comparably performant to the Unity Unlit Shaders, but they are even slower than the Standard Shaders. Any idea what is going on or how to fix it? Maybe I missed something?
     
  33. Alessandro-Previti

    Alessandro-Previti

    Joined:
    Nov 1, 2014
    Posts:
    30
    Hello. I wrote an email asking some questions, I am a customer. I have not received any anwswer.
    Except my questions from the mail, I must report a grave bug. The Fading option does not work properly with .blend files. It does not work even with .FBX exported from Blender with corrected axis. The gradient goes only in the wrong directions.

    Help please.
     
    Last edited: Dec 21, 2019