mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Cleanup.
This commit is contained in:
parent
69fd07a590
commit
1179f3a79b
6 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ void main()
|
||||||
vec3 normal = normalize(v_normal);
|
vec3 normal = normalize(v_normal);
|
||||||
vec3 view = normalize(v_view);
|
vec3 view = normalize(v_view);
|
||||||
vec2 bln = blinn(lightDir, normal, view);
|
vec2 bln = blinn(lightDir, normal, view);
|
||||||
float l = saturate(bln.y);
|
float l = saturate(bln.y) + 0.12;
|
||||||
|
|
||||||
color.xyz = toLinear(color.xyz)*l;
|
color.xyz = toLinear(color.xyz)*l;
|
||||||
gl_FragColor = toGamma(color);
|
gl_FragColor = toGamma(color);
|
||||||
|
|
|
@ -165,8 +165,8 @@ class Lod : public entry::AppI
|
||||||
bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Mesh LOD transitions.");
|
bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Mesh LOD transitions.");
|
||||||
bgfx::dbgTextPrintf(0, 3, 0x0f, "Frame: % 7.3f[ms]", double(frameTime)*toMs);
|
bgfx::dbgTextPrintf(0, 3, 0x0f, "Frame: % 7.3f[ms]", double(frameTime)*toMs);
|
||||||
|
|
||||||
float at[3] = { 0.0f, 1.0f, 0.0f };
|
float at[3] = { 0.0f, 1.0f, 0.0f };
|
||||||
float eye[3] = { 0.0f, -distance, -2.0f };
|
float eye[3] = { 0.0f, 2.0f, -distance };
|
||||||
|
|
||||||
// Set view and projection matrix for view 0.
|
// Set view and projection matrix for view 0.
|
||||||
const bgfx::HMD* hmd = bgfx::getHMD();
|
const bgfx::HMD* hmd = bgfx::getHMD();
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue