From cab351837ef8aeb79caa95460adfd06b8cb03c9c Mon Sep 17 00:00:00 2001 From: "jun.zhang" Date: Thu, 6 Mar 2025 15:25:19 +0800 Subject: [PATCH] FIX: silhouette shader jira: STUDIO-10736 / STUDIO-10723 / STUDIO-10720 Change-Id: Id4335e53bb80fa6f9c0404a0d0de6b530ff9f691 --- resources/shaders/110/silhouette_composite.fs | 2 +- resources/shaders/140/silhouette_composite.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaders/110/silhouette_composite.fs b/resources/shaders/110/silhouette_composite.fs index 2fe8d0e48..5518980fd 100644 --- a/resources/shaders/110/silhouette_composite.fs +++ b/resources/shaders/110/silhouette_composite.fs @@ -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 ); diff --git a/resources/shaders/140/silhouette_composite.fs b/resources/shaders/140/silhouette_composite.fs index 7baf85d92..964b2d220 100644 --- a/resources/shaders/140/silhouette_composite.fs +++ b/resources/shaders/140/silhouette_composite.fs @@ -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;