Skip to content
Snippets Groups Projects
Commit 4fd71b7d authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#63] Use normals for visualisation for easier testing

parent 69e59274
No related branches found
No related tags found
1 merge request!51Resolve "Laden mehrer Meshes mit Materials und Textures"
No preview for this file type
...@@ -11,4 +11,5 @@ layout(set=0, binding=1) uniform sampler textureSampler; ...@@ -11,4 +11,5 @@ layout(set=0, binding=1) uniform sampler textureSampler;
void main() { void main() {
outColor = texture(sampler2D(meshTexture, textureSampler), passUV).rgb; outColor = texture(sampler2D(meshTexture, textureSampler), passUV).rgb;
outColor = passNormal * 0.5 + 0.5;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment