From 3fc2bdca362e5b9adf374c673daeb03911314bb8 Mon Sep 17 00:00:00 2001 From: Justin Braben Date: Thu, 2 Oct 2025 15:23:50 -0600 Subject: [PATCH] fix vec4 -> float4 for slang shader code snippet --- en/06_Texture_mapping/02_Combined_image_sampler.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/06_Texture_mapping/02_Combined_image_sampler.adoc b/en/06_Texture_mapping/02_Combined_image_sampler.adoc index 2e6d8b93..e603a3ee 100644 --- a/en/06_Texture_mapping/02_Combined_image_sampler.adoc +++ b/en/06_Texture_mapping/02_Combined_image_sampler.adoc @@ -223,7 +223,7 @@ You can also manipulate the texture colors using the vertex colors: ---- [shader("fragment")] float4 fragMain(VSOutput vertIn) : SV_TARGET { - return vec4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0); + return float4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0); } ----