diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-06-09 16:51:46 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-06-09 16:51:46 +1000 |
commit | b9a7166d9a7e2b0eed948353c134e72dfa86ab58 (patch) | |
tree | a32d0253f45c927f141e3f4cbc1f58a0f6ca3adb /assets/shaders/cube.frag | |
parent | 9c79df522980eabdc5e52592cbd152e2a285c4cc (diff) |
fix texture on cube with opengl
Diffstat (limited to 'assets/shaders/cube.frag')
-rw-r--r-- | assets/shaders/cube.frag | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/shaders/cube.frag b/assets/shaders/cube.frag index 9d8ab28..02cb9b3 100644 --- a/assets/shaders/cube.frag +++ b/assets/shaders/cube.frag @@ -4,10 +4,11 @@ layout(location = 0) in vec3 fragColor; layout(location = 1) in vec2 fragTexCoord; layout(binding = 1) uniform sampler2D texSampler; +// uniform sampler2D texSampler; layout(location = 0) out vec4 outColor; void main() { - // outColor = texture(texSampler, fragTexCoord); // vec4(fragTexCoord, 0.0); - outColor = vec4(fragColor, 1.0); + outColor = texture(texSampler, fragTexCoord); // vec4(fragTexCoord, 0.0); + // outColor = vec4(fragColor, 1.0); } |