mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-20 09:52:38 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f27b3c0541 | |||
| 7779af835a | |||
| 6123ac3bd4 |
@@ -137,6 +137,11 @@ Please enable `TexCoord1` to use UIEffect.
|
||||
|
||||
## Release Notes
|
||||
|
||||
### ver.1.5.1
|
||||
|
||||
* Fixed: An error occurs when no effect is specified for UICapturedImage. [#36](https://github.com/mob-sakai/UIEffect/issues/36)
|
||||
|
||||
|
||||
### ver.1.5.0
|
||||
|
||||
* Feature: Add ToneMode `Hue Shift`.
|
||||
|
||||
@@ -175,8 +175,9 @@ namespace UnityEngine.UI
|
||||
Material mat = effectMaterial;
|
||||
|
||||
_buffer = new CommandBuffer();
|
||||
_buffer.name = mat.name;
|
||||
_rt.name = mat.name;
|
||||
_buffer.name =
|
||||
_rt.name =
|
||||
mat ? mat.name : "noeffect";
|
||||
|
||||
// Copy to temporary RT.
|
||||
_buffer.GetTemporaryRT(s_CopyId, -1, -1, 0, FilterMode.Bilinear);
|
||||
@@ -194,6 +195,7 @@ namespace UnityEngine.UI
|
||||
if (!mat)
|
||||
{
|
||||
_buffer.Blit(s_CopyId, rtId);
|
||||
_buffer.ReleaseTemporaryRT(s_CopyId);
|
||||
}
|
||||
// Blit with reduction buffer.
|
||||
else if (m_DesamplingRate < m_ReductionRate)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user