FIX: silhouette shader
jira: STUDIO-10736 / STUDIO-10723 / STUDIO-10720 Change-Id: Id4335e53bb80fa6f9c0404a0d0de6b530ff9f691
This commit is contained in:
parent
38da475197
commit
cab351837e
|
@ -14,7 +14,7 @@ void main()
|
||||||
vec4 pixels[9];
|
vec4 pixels[9];
|
||||||
float deltaWidth = 1.0 / u_viewport_size.x;
|
float deltaWidth = 1.0 / u_viewport_size.x;
|
||||||
float deltaHeight = 1.0 / u_viewport_size.y;
|
float deltaHeight = 1.0 / u_viewport_size.y;
|
||||||
float effect_width = 2.0f;
|
float effect_width = 2.0;
|
||||||
deltaWidth = deltaWidth * effect_width;
|
deltaWidth = deltaWidth * effect_width;
|
||||||
deltaHeight = deltaHeight * effect_width;
|
deltaHeight = deltaHeight * effect_width;
|
||||||
pixels[0] = sample(-deltaWidth, deltaHeight );
|
pixels[0] = sample(-deltaWidth, deltaHeight );
|
||||||
|
|
|
@ -16,7 +16,7 @@ void main()
|
||||||
vec4 pixels[9];
|
vec4 pixels[9];
|
||||||
float deltaWidth = 1.0 / u_viewport_size.x;
|
float deltaWidth = 1.0 / u_viewport_size.x;
|
||||||
float deltaHeight = 1.0 / u_viewport_size.y;
|
float deltaHeight = 1.0 / u_viewport_size.y;
|
||||||
float effect_width = 2.0f;
|
float effect_width = 2.0;
|
||||||
deltaWidth = deltaWidth * effect_width;
|
deltaWidth = deltaWidth * effect_width;
|
||||||
deltaHeight = deltaHeight * effect_width;
|
deltaHeight = deltaHeight * effect_width;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue