NAP
Namespaces | Variables
nap::uniform Namespace Reference

Namespaces

 blinnphongcolor
 
 blinnphongtexture
 
 blur
 
 coloradjustment
 
 constant
 
 cubemap
 
 fade
 
 font
 
 light
 
 shadow
 
 skybox
 
 texture
 
 video
 

Variables

constexpr const char * mvpStruct = "nap"
 default model view projection struct name More...
 
constexpr const char * modelMatrix = "modelMatrix"
 uniform model matrix name More...
 
constexpr const char * viewMatrix = "viewMatrix"
 uniform view matrix name More...
 
constexpr const char * projectionMatrix = "projectionMatrix"
 uniform projection matrix name More...
 
constexpr const char * normalMatrix = "normalMatrix"
 uniform normal matrix name More...
 
constexpr const char * cameraPosition = "cameraPosition"
 uniform camera world position name More...
 
constexpr const char * uniforms = "Uniforms"
 
constexpr const char * value = "Value"
 
constexpr const char * values = "Values"
 
constexpr const char * structs = "Structs"
 
constexpr const char * lightStruct = "light"
 
constexpr const char * shadowStruct = "shadow"
 

Detailed Description

Uniform names

These uniforms are set automatically by all nap::RenderableComponent(s) when present in the vertex shader.

...
uniform nap
{
mat4 viewMatrix;
} mvp;
...
void main(void)
{
gl_Position = mvp.projectionMatrix * mvp.viewMatrix * mvp.modelMatrix * vec4(in_Position, 1.0);
}

Light Component default light uniforms

Variable Documentation

◆ cameraPosition

constexpr const char* cameraPosition = "cameraPosition"
constexpr

uniform camera world position name

◆ lightStruct

constexpr const char* lightStruct = "light"
constexpr

◆ modelMatrix

constexpr const char* modelMatrix = "modelMatrix"
constexpr

uniform model matrix name

◆ mvpStruct

constexpr const char* mvpStruct = "nap"
constexpr

default model view projection struct name

◆ normalMatrix

constexpr const char* normalMatrix = "normalMatrix"
constexpr

uniform normal matrix name

◆ projectionMatrix

constexpr const char* projectionMatrix = "projectionMatrix"
constexpr

uniform projection matrix name

◆ shadowStruct

constexpr const char* shadowStruct = "shadow"
constexpr

◆ structs

constexpr const char* structs = "Structs"
constexpr

◆ uniforms

constexpr const char* uniforms = "Uniforms"
constexpr

◆ value

constexpr const char* value = "Value"
constexpr

◆ values

constexpr const char* values = "Values"
constexpr

◆ viewMatrix

constexpr const char* viewMatrix = "viewMatrix"
constexpr

uniform view matrix name

nap::uniform::viewMatrix
constexpr const char * viewMatrix
uniform view matrix name
Definition: renderglobals.h:57
nap::shader::main
constexpr const char * main
Definition: renderglobals.h:29
nap::uniform::cameraPosition
constexpr const char * cameraPosition
uniform camera world position name
Definition: renderglobals.h:60
nap::uniform::normalMatrix
constexpr const char * normalMatrix
uniform normal matrix name
Definition: renderglobals.h:59
nap::uniform::modelMatrix
constexpr const char * modelMatrix
uniform model matrix name
Definition: renderglobals.h:56
nap
Definition: templateapp.h:17
nap::uniform::projectionMatrix
constexpr const char * projectionMatrix
uniform projection matrix name
Definition: renderglobals.h:58