Created
October 11, 2019 05:25
-
-
Save gerwang/509e63814bdf56aaf7f0247c39fd2c46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 430 core | |
layout(location = 0) in vec3 in_position; | |
layout(location = 1) in vec2 in_tex_pos; | |
layout(location = 2) in vec3 in_normal; | |
out vec3 fs_normal; | |
out vec2 fs_tex_pos; | |
uniform mat4 mvpMat; | |
uniform mat4 normalMat; | |
void main() { | |
gl_Position = mvpMat*vec4(in_position, 1.0f); | |
// gl_Position = vec4(0.0f, 0.0f, 0.0f, 1.0f); | |
fs_normal = (normalMat*vec4(in_normal, 0.0f)).xyz; | |
fs_tex_pos = in_tex_pos; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment