R2 Core Shaders
Functions | Variables
R2Billboarded.vert File Reference

A vertex shader for billboarded instances. More...

#include "R2LogDepth.h"
#include "R2View.h"
Include dependency graph for R2Billboarded.vert:

Go to the source code of this file.

Functions

 layout (location=0) in vec3 R2_vertex_world_position
 World-space position. More...
 
void main (void)
 

Variables

uniform R2_view_t R2_view
 
out vec4 R2_billboard_scale_eye
 

Detailed Description

A vertex shader for billboarded instances.

Definition in file R2Billboarded.vert.

Function Documentation

§ layout()

layout ( location  = 0)

World-space position.

Object-space tangent vector.

Object-space normal vector.

UV coordinates.

RGBA color.

Eye-space scale.