one.empty3.library.shader.sample.vertex.glsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of empty3-library-generic Show documentation
Show all versions of empty3-library-generic Show documentation
3D rendering engine. Plus modeling. Expected glsl textures 3d and 2d rendering
attribute vec3 position; // input vertex position from mesh
attribute vec2 texcoord; // input vertex texture coordinate from mesh
attribute vec3 normal; // input vertex normal from mesh
varying vec2 tc; // output texture coordinate of vertex
varying vec3 fn; // output fragment normal of vertex
void main(){
tc = texcoord;
fn = normal;
gl_Position = vec4(0.5 * position, 1.0);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy