Added predefined uniforms for inverted view/proj/viewproj matrices.

shaderc: Added raw shader support.
shaderc: Fixed uniform types.
This commit is contained in:
Branimir Karadžić
2014-05-10 20:51:44 -07:00
parent ff6c7bc654
commit bba2ef8031
177 changed files with 1969 additions and 1549 deletions

View File

@@ -17,11 +17,12 @@ struct PosColorTexCoord0Vertex
static void init()
{
ms_decl.begin();
ms_decl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float);
ms_decl.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true);
ms_decl.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float);
ms_decl.end();
ms_decl
.begin()
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float)
.end();
}
static bgfx::VertexDecl ms_decl;