Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /examples/iso2d-spatial/shaders/shader.vert
ViewVC logotype

View of /examples/iso2d-spatial/shaders/shader.vert

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2950 - (download) (annotate)
Wed Mar 4 20:52:35 2015 UTC (4 years, 7 months ago) by lamonts
File size: 371 byte(s)
Adding the iso2d demo with particle interaction
/*! \file shader.vert
 *
 * \brief The vertex shader for a cube
 *
 * \author Lamont Samuels
 *
 */
#version 410 core

layout(location = 0) in vec3 pos; 
layout(location = 1) in vec4 color; 
layout(location = 3) in mat4 model;


out vec4 vColor;

uniform mat4 projection;

void main (void)
{
    gl_Position =  projection * model * vec4(pos,1.0); 
    vColor = color; 
}

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0