Skip to content

Commit 2897923

Browse files
authored
fix vec4 -> float4 for slang shader code snippet (#182)
1 parent d0fd717 commit 2897923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/06_Texture_mapping/02_Combined_image_sampler.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ You can also manipulate the texture colors using the vertex colors:
223223
----
224224
[shader("fragment")]
225225
float4 fragMain(VSOutput vertIn) : SV_TARGET {
226-
return vec4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0);
226+
return float4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0);
227227
}
228228
----
229229

0 commit comments

Comments
 (0)