We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fd717 commit 3fc2bdcCopy full SHA for 3fc2bdc
en/06_Texture_mapping/02_Combined_image_sampler.adoc
@@ -223,7 +223,7 @@ You can also manipulate the texture colors using the vertex colors:
223
----
224
[shader("fragment")]
225
float4 fragMain(VSOutput vertIn) : SV_TARGET {
226
- return vec4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0);
+ return float4(vertIn.fragColor * texture.Sample(vertIn.fragTexCoord).rgb, 1.0);
227
}
228
229
0 commit comments