Uniform names
These uniforms are set automatically by all nap::RenderableComponent(s) when present in the vertex shader.
...
{
} mvp;
...
{
gl_Position = mvp.projectionMatrix * mvp.viewMatrix * mvp.modelMatrix * vec4(in_Position, 1.0);
}
Light Component default light uniforms
◆ 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 |