-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
369 additions
and
430 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,113 @@ | ||
<filter | ||
color-interpolation-filters="sRGB" | ||
id="glowEmboss" | ||
width="250%" | ||
height="250%" | ||
x="-75%" | ||
y="-55%" | ||
> | ||
<feGaussianBlur | ||
in="SourceAlpha" | ||
result="alphablur" | ||
stdDeviation="8" | ||
/> | ||
|
||
{{! <!-- Background glow --> }} | ||
<feGaussianBlur | ||
in="SourceAlpha" | ||
stdDeviation="30" | ||
result="glow" | ||
/> | ||
<feColorMatrix | ||
in="glow" | ||
result="bgGlow" | ||
type="matrix" | ||
values="-1 0 0 0 1 | ||
0 -1 0 0 1 | ||
0 0 -1 0 1 | ||
0 0 0 1 0 " | ||
/> | ||
|
||
{{! <!-- Emboss/Bevel --> }} | ||
{{#each layers}} | ||
<feTurbulence | ||
{{#if fractalNoise}}type="fractalNoise"{{/if}} | ||
baseFrequency="{{uint8 turbFreqX decimals=3}} {{uint8 turbFreqY decimals=3}}" | ||
numOctaves="{{uint8 turbOct}}" | ||
seed="1004123123" | ||
result="turb_{{@index}}" | ||
/> | ||
<defs> | ||
<filter | ||
color-interpolation-filters="sRGB" | ||
id="ge" | ||
width="250%" | ||
height="250%" | ||
x="-75%" | ||
y="-55%" | ||
> | ||
<feGaussianBlur | ||
stdDeviation="{{uint8 turbBlur decimals=1}}" | ||
in="SourceAlpha" | ||
result="turb_blur_{{@index}}" | ||
result="alphablur" | ||
stdDeviation="8" | ||
/> | ||
<feDisplacementMap | ||
scale="{{uint8 dispScale}}" | ||
in="turb_blur_{{@index}}" | ||
in2="turb_{{@index}}" | ||
result="disp_turb_{{@index}}" | ||
|
||
{{! Background glow }} | ||
<feGaussianBlur | ||
in="SourceAlpha" | ||
stdDeviation="30" | ||
result="fg" | ||
/> | ||
<feColorMatrix | ||
in="fg" | ||
result="bgg" | ||
type="matrix" | ||
values="0 0 0 0 0, | ||
0 0 0 0 0, | ||
0 0 0 0 0, | ||
0 0 0 1 0" | ||
in="disp_turb_{{@index}}" | ||
result="co_mat_{{@index}}" | ||
/> | ||
<feGaussianBlur | ||
stdDeviation="{{uint8 blurX decimals=1}} {{uint8 blurY decimals=1}}" | ||
in="co_mat_{{@index}}" | ||
result="blur_co_mat_{{@index}}" | ||
values="-1 0 0 0 1 | ||
0 -1 0 0 1 | ||
0 0 -1 0 1 | ||
0 0 0 1 0 " | ||
/> | ||
<feSpecularLighting | ||
surfaceScale="{{uint8 surfaceScale}}" | ||
specularConstant="{{uint8 specConstant decimals=2}}" | ||
specularExponent="{{uint8 specExponent}}" | ||
lighting-color="{{lightColor}}" | ||
in="blur_co_mat_{{@index}}" | ||
result="lighting_{{@index}}" | ||
> | ||
<fePointLight x="{{int16 pointX}}" y="{{int16 pointY}}" z="{{int16 pointZ}}"/> | ||
</feSpecularLighting> | ||
<feComposite | ||
operator="in" | ||
in="lighting_{{@index}}" | ||
in2="co_mat_{{@index}}" | ||
result="comp_light_1_{{@index}}" | ||
/> | ||
<feComposite | ||
operator="arithmetic" | ||
k1="0" | ||
k2="0" | ||
k3="{{uint8 opacity decimals=2}}" | ||
k4="0" | ||
in="disp_turb_{{@index}}" | ||
in2="comp_light_1_{{@index}}" | ||
result="comp_light_2_{{@index}}" | ||
/> | ||
<feComposite | ||
operator="in" | ||
in2="SourceAlpha" | ||
in="comp_light_2_{{@index}}" | ||
result="comp_light_final_{{@index}}" | ||
/> | ||
|
||
{{/each}} | ||
|
||
<feMerge> | ||
<feMergeNode in="bgGlow"/> | ||
<feMergeNode in="SourceGraphic"/> | ||
{{! Emboss/Bevel }} | ||
{{#each layers}} | ||
<feMergeNode in="comp_light_final_{{@index}}"/> | ||
<feTurbulence | ||
{{#if fractalNoise}}type="fractalNoise"{{/if}} | ||
baseFrequency="{{uint8 turbFreqX decimals=3}} {{uint8 turbFreqY decimals=3}}" | ||
numOctaves="{{uint8 turbOct}}" | ||
seed="1004123123" | ||
result="t{{@index}}" | ||
/> | ||
<feGaussianBlur | ||
stdDeviation="{{uint8 turbBlur decimals=1}}" | ||
in="SourceAlpha" | ||
result="tb{{@index}}" | ||
/> | ||
<feDisplacementMap | ||
scale="{{uint8 dispScale}}" | ||
in="tb{{@index}}" | ||
in2="t{{@index}}" | ||
result="dt{{@index}}" | ||
/> | ||
<feColorMatrix | ||
type="matrix" | ||
values="0 0 0 0 0, | ||
0 0 0 0 0, | ||
0 0 0 0 0, | ||
0 0 0 1 0" | ||
in="dt{{@index}}" | ||
result="cm{{@index}}" | ||
/> | ||
<feGaussianBlur | ||
stdDeviation="{{uint8 blurX decimals=1}} {{uint8 blurY decimals=1}}" | ||
in="cm{{@index}}" | ||
result="bcm{{@index}}" | ||
/> | ||
<feSpecularLighting | ||
surfaceScale="{{uint8 surfaceScale}}" | ||
specularConstant="{{uint8 specConstant decimals=2}}" | ||
specularExponent="{{uint8 specExponent}}" | ||
lighting-color="{{lightColor}}" | ||
in="bcm{{@index}}" | ||
result="l{{@index}}" | ||
> | ||
<fePointLight x="{{int16 pointX}}" y="{{int16 pointY}}" z="{{int16 pointZ}}"/> | ||
</feSpecularLighting> | ||
<feComposite | ||
operator="in" | ||
in="l{{@index}}" | ||
in2="cm{{@index}}" | ||
result="cl1{{@index}}" | ||
/> | ||
<feComposite | ||
operator="arithmetic" | ||
k1="0" | ||
k2="0" | ||
k3="{{uint8 opacity decimals=2}}" | ||
k4="0" | ||
in="dt{{@index}}" | ||
in2="cl1{{@index}}" | ||
result="cl2{{@index}}" | ||
/> | ||
<feComposite | ||
operator="in" | ||
in2="SourceAlpha" | ||
in="cl2{{@index}}" | ||
result="clf{{@index}}" | ||
/> | ||
|
||
{{/each}} | ||
</feMerge> | ||
</filter> | ||
|
||
<feMerge> | ||
<feMergeNode in="bgg"/> | ||
<feMergeNode in="SourceGraphic"/> | ||
{{#each layers}} | ||
<feMergeNode in="clf{{@index}}"/> | ||
{{/each}} | ||
</feMerge> | ||
</filter> | ||
|
||
<filter id="bb"> | ||
<feGaussianBlur in="SourceGraphic" stdDeviation="2"/> | ||
</filter> | ||
</defs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<defs> | ||
<g id="halo" filter="url(#glowEmboss)"> | ||
<g id="halo" filter="url(#ge)"> | ||
<path | ||
d=" | ||
{{~#if halo0~}} | ||
|
Oops, something went wrong.