aaa
This commit is contained in:
Binary file not shown.
@@ -94,8 +94,8 @@ namespace Game
|
||||
{
|
||||
bgfx::Init init;
|
||||
init.type = bgfx::RendererType::OpenGL;
|
||||
init.debug = true;
|
||||
init.callback = &Callback;
|
||||
//init.debug = true;
|
||||
//init.callback = &Callback;
|
||||
init.platformData.nwh = (void*)window;
|
||||
init.platformData.ndt = nullptr;
|
||||
init.platformData.type = bgfx::NativeWindowHandleType::Default;
|
||||
@@ -112,7 +112,7 @@ namespace Game
|
||||
}
|
||||
bgfx::setDebug(BGFX_DEBUG_TEXT);
|
||||
bgfx::setViewClear(0, BGFX_CLEAR_COLOR | BGFX_CLEAR_DEPTH, 0x303030ff, 1.0f, 0);
|
||||
|
||||
|
||||
VertLayout.begin()
|
||||
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
|
||||
.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
|
||||
@@ -152,7 +152,7 @@ namespace Game
|
||||
| BGFX_STATE_WRITE_A
|
||||
| BGFX_STATE_WRITE_Z
|
||||
| BGFX_STATE_DEPTH_TEST_LESS
|
||||
| BGFX_STATE_CULL_CW
|
||||
| BGFX_STATE_CULL_CW
|
||||
| BGFX_STATE_MSAA
|
||||
;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
$input v_color0
|
||||
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
|
||||
@@ -5,6 +5,6 @@ $output v_color0
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
|
||||
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0));
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user