Compare commits

..

7 Commits

Author SHA1 Message Date
Takashi Sakai 674c1e858b Merge pull request #22 from mob-sakai/hotfix
Release 1.4.3
2018-01-15 09:11:39 +09:00
Takashi Sakai 67c35affec Release 1.4.3 2018-01-15 08:56:58 +09:00
Takashi Sakai 7fe0b44e56 Fixed: Color effect is incorrect. #19 2018-01-15 08:56:25 +09:00
Takashi Sakai 0c2a515abc Export 1.4.2 2018-01-15 01:39:03 +09:00
Takashi Sakai 2c7df2a749 Fixed: Error has occur on after deserialize. 2018-01-15 01:34:20 +09:00
Takashi Sakai cc02d8945b Export 1.4.1 2018-01-10 12:11:46 +09:00
Takashi Sakai 866cf34048 Fixed: Demo link is broken. 2018-01-10 12:11:34 +09:00
4 changed files with 23 additions and 4 deletions
+18 -3
View File
@@ -3,6 +3,8 @@ UIEffect
![image](https://user-images.githubusercontent.com/12690315/34617503-054e958e-f27f-11e7-89d5-9cced222883a.png)
[WebGL Demo](https://developer.cloud.unity3d.com/share/WyQetw3p-X/webgl/)
Easy to use effects for uGUI. Supports following effects.
* Grayscale tone
@@ -29,7 +31,7 @@ Easy to use effects for uGUI. Supports following effects.
![image](https://user-images.githubusercontent.com/12690315/34552373-600fdab2-f164-11e7-8565-21c15af92a93.png)
* Capture image with effect, like post effect
![image](https://user-images.githubusercontent.com/12690315/34619147-868cb36a-f284-11e7-8122-b924ff09077f.gif)
* Dialog with captured image effect.
* Dialog with captured image effect
![image](https://user-images.githubusercontent.com/12690315/34619468-97e3c134-f285-11e7-90b2-3a75bde13911.gif)
@@ -66,7 +68,8 @@ This effect is non-realtime, light-weight, less-camera, blit only once, but effe
* Process effect only once after `UIEffectCapturedImage.Capture`.
* Using reduction buffer, keep used memory size small and keep rendering load are small.
* When GameObjects with motion are on the screen, a result texture may be stirred.
* You can overlay and display like as: [Screen] | [UIEffectCapturedImage] | [Dialog A] | [UIEffectCapturedImage] | [Dialog B]. See also demo.
* You can overlay and display like as: [Screen] | [UIEffectCapturedImage] | [Dialog A] | [UIEffectCapturedImage] | [Dialog B].
See also [WebGL Demo](https://developer.cloud.unity3d.com/share/WyQetw3p-X/webgl/).
@@ -83,7 +86,7 @@ Please enable `TexCoord1` to use UIEffect.
## Demo
[WebGL Demo](https://developer.cloud.unity3d.com/share/b18LwIciWX/webgl/)
[WebGL Demo](https://developer.cloud.unity3d.com/share/WyQetw3p-X/webgl/)
* Effect sample
* Transition
@@ -95,6 +98,18 @@ Please enable `TexCoord1` to use UIEffect.
## Release Notes
### ver.1.4.3
* Fixed: Color effect is incorrect. [#19](https://github.com/mob-sakai/UIEffect/issues/19)
### ver.1.4.2
* Fixed: Error has occur on after deserialize. [#16](https://github.com/mob-sakai/UIEffect/issues/16)
### ver.1.4.1
* Fixed: Demo link in `readme.md` is broken.
### ver.1.4.0
* Changed: ToneMode, ColorMode, BlurMode can be changed only in editor.
+1 -1
View File
@@ -171,7 +171,7 @@ Shader "UI/Hidden/UI-Effect"
#endif
#if defined (UI_COLOR)
color = ApplyColorEffect(color, IN.colorFactor); // Color effect.
color = ApplyColorEffect(color, IN.colorFactor) * IN.color; // Color effect.
#endif
return color;
+4
View File
@@ -329,8 +329,12 @@ namespace UnityEngine.UI
public void OnAfterDeserialize()
{
var obj = this;
EditorApplication.delayCall += () =>
{
if (!obj)
return;
var old = m_EffectMaterial;
m_EffectMaterial = GetMaterial(Shader.Find(shaderName), toneMode, colorMode, blurMode);
if (old != m_EffectMaterial)
Binary file not shown.