FIX: silhouette shader

jira: STUDIO-10736 / STUDIO-10723 / STUDIO-10720

Change-Id: Id4335e53bb80fa6f9c0404a0d0de6b530ff9f691
This commit is contained in:
jun.zhang 2025-03-06 15:25:19 +08:00 committed by lane.wei
parent 38da475197
commit cab351837e
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ void main()
vec4 pixels[9];
float deltaWidth = 1.0 / u_viewport_size.x;
float deltaHeight = 1.0 / u_viewport_size.y;
float effect_width = 2.0f;
float effect_width = 2.0;
deltaWidth = deltaWidth * effect_width;
deltaHeight = deltaHeight * effect_width;
pixels[0] = sample(-deltaWidth, deltaHeight );

View File

@ -16,7 +16,7 @@ void main()
vec4 pixels[9];
float deltaWidth = 1.0 / u_viewport_size.x;
float deltaHeight = 1.0 / u_viewport_size.y;
float effect_width = 2.0f;
float effect_width = 2.0;
deltaWidth = deltaWidth * effect_width;
deltaHeight = deltaHeight * effect_width;