diff --git a/CHANGELOG.md b/CHANGELOG.md index b48fe24..75c95a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# [4.0.0-preview.7](https://github.com/mob-sakai/UIEffect/compare/v4.0.0-preview.6...v4.0.0-preview.7) (2020-05-11) + + +### Bug Fixes + +* not working on PS4 ([0f595eb](https://github.com/mob-sakai/UIEffect/commit/0f595eb79197433e166bf74d736d9841b4117011)), closes [#211](https://github.com/mob-sakai/UIEffect/issues/211) +* Shaders.meta file should be removed ([e9cc165](https://github.com/mob-sakai/UIEffect/commit/e9cc165e2edba572d868d224e42df31666fd4002)), closes [#210](https://github.com/mob-sakai/UIEffect/issues/210) + # [4.0.0-preview.6](https://github.com/mob-sakai/UIEffect/compare/v4.0.0-preview.5...v4.0.0-preview.6) (2020-04-14) diff --git a/Resources/UIEffect.cginc b/Resources/UIEffect.cginc index 697d3c8..eeb2dcf 100644 --- a/Resources/UIEffect.cginc +++ b/Resources/UIEffect.cginc @@ -260,7 +260,7 @@ half4 ApplyShinyEffect(half4 color, half2 shinyParam) fixed gloss = param2.x; half normalized = 1 - saturate(abs((nomalizedPos - location) / width)); half shinePower = smoothstep(0, soft, normalized); - half3 reflectColor = lerp(1, color.rgb * 7, gloss); + half3 reflectColor = lerp(fixed3(1,1,1), color.rgb * 7, gloss); color.rgb += color.a * (shinePower / 2) * brightness * reflectColor; @@ -282,7 +282,7 @@ half3 HsvToRgb(half3 c) { c = half3(c.x, clamp(c.yz, 0.0, 1.0)); half4 K = half4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); half3 p = abs(frac(c.xxx + K.xyz) * 6.0 - K.www); - return c.z * lerp(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); + return c.z * lerp(K.xxx, clamp(p.xyz - K.xxx, 0.0, 1.0), c.y); } diff --git a/Shaders.meta b/Shaders.meta deleted file mode 100644 index 2c87ba2..0000000 --- a/Shaders.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: deded9e09f6e644228da395138e4f232 -folderAsset: yes -timeCreated: 1527743712 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/package.json b/package.json index d33f508..0bd5d93 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.coffee.ui-effect", "displayName": "UIEffect", "description": "UIEffect provides visual effect components for Unity UI.\nLet's decorate your UI with effects!", - "version": "4.0.0-preview.6", + "version": "4.0.0-preview.7", "unity": "2017.1", "license": "MIT", "repository": {