This commit is contained in:
Asuro
2025-02-08 13:52:10 +01:00
parent c868a3c43e
commit 149de529e6
6 changed files with 9 additions and 9 deletions

View File

@@ -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
;

View File

@@ -1,4 +1,5 @@
$input v_color0
#include "common.sh"
void main()

View File

@@ -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;
}