R2 Shaders
R2SurfaceVertex.h
Go to the documentation of this file.
1 #ifndef R2_SURFACE_VERTEX_H
2 #define R2_SURFACE_VERTEX_H
3 
4 /// \file R2SurfaceVertex.h
5 /// \brief Data required by each vertex in deferred rendering, provided as vertex attributes.
6 
7 /// Object-space position
8 layout(location = 0) in vec3 R2_vertex_position;
9 
10 /// UV coordinates
11 layout(location = 1) in vec2 R2_vertex_uv;
12 
13 /// Object-space normal vector
14 layout(location = 2) in vec3 R2_vertex_normal;
15 
16 /// Object-space tangent vector
17 layout(location = 3) in vec4 R2_vertex_tangent4;
18 
19 #endif // R2_SURFACE_VERTEX_H
layout(location=0) in vec3 R2_vertex_position
Object-space position.