1 Star 1 Fork 0

sandman/d3d11_vulkan_sharing

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
26_shader_textures.frag 439 Bytes
Copy Edit Raw Blame History
sandman authored 2022-11-21 17:36 . initial version
#version 450
layout(binding = 1) uniform sampler2D texSampler;
layout(location = 0) in vec3 fragColor;
layout(location = 1) in vec2 fragTexCoord;
layout(location = 0) out vec4 outColor;
void main() {
outColor = texture(texSampler, fragTexCoord); //texture only
// outColor = vec4(fragColor, 1.0) * texture(texSampler, fragTexCoord); //texture/vertex blending
// outColor = vec4(fragColor, 1.0); //vertext color only
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tisandman/d3d11_vulkan_sharing.git
git@gitee.com:tisandman/d3d11_vulkan_sharing.git
tisandman
d3d11_vulkan_sharing
d3d11_vulkan_sharing
master

Search