Skip to content

Commit

Permalink
4.0.0-preview.7
Browse files Browse the repository at this point in the history
# [4.0.0-preview.7](mob-sakai/UIEffect@v4.0.0-preview.6...v4.0.0-preview.7) (2020-05-11)

### Bug Fixes

* not working on PS4 ([0f595eb](mob-sakai/UIEffect@0f595eb)), closes [#211](mob-sakai/UIEffect#211)
* Shaders.meta file should be removed ([e9cc165](mob-sakai/UIEffect@e9cc165)), closes [#210](mob-sakai/UIEffect#210)
  • Loading branch information
AwfulDarkness0110 committed May 11, 2020
1 parent 3acad35 commit 6cd8efb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 2 additions & 2 deletions Resources/UIEffect.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}


Expand Down
9 changes: 0 additions & 9 deletions Shaders.meta

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6cd8efb

Please sign in to comment.