R2 Core Shaders

R2SurfaceVertexBatched.h
Go to the documentation of this file.
1 #ifndef R2_SURFACE_VERTEX_BATCHED_H
2 #define R2_SURFACE_VERTEX_BATCHED_H
3
4 #include "R2SurfaceVertex.h"
5
6 /// \file R2SurfaceVertexBatched.h
7 /// \brief Data delivered via vertex attributes to batched instances in deferred rendering.
8
9 layout(location = 4) in mat4x4 R2_vertex_transform_model; /// Object-space to World-space matrix
10
11 #endif // R2_SURFACE_VERTEX_BATCHED_H
R2SurfaceVertex.h
Data required by each vertex in deferred rendering, provided as vertex attributes.
layout
layout(location=0) in vec3 R2_vertex_world_position
World-space position.