one.empty3.library1.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-3d Show documentation
Show all versions of empty3-library-3d Show documentation
3D rendering engine. Plus modelling. Expected glsl textures 3d and 2d rendering3D primitives, and a lot of scenes' samples to test.+ Game Jogl reworked, Calculator (numbers and vectors). Java code parser implementation starts (<=1.2)
The newest version!
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);
}