From 1179f3a79b7e9c73ce8967f058f076d82b71355b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 24 Oct 2015 22:53:26 -0700 Subject: [PATCH] Cleanup. --- examples/12-lod/fs_tree.sc | 2 +- examples/12-lod/lod.cpp | 4 ++-- examples/runtime/shaders/dx11/fs_tree.bin | Bin 1385 -> 1413 bytes examples/runtime/shaders/dx9/fs_tree.bin | Bin 1006 -> 1022 bytes examples/runtime/shaders/gles/fs_tree.bin | Bin 1303 -> 1312 bytes examples/runtime/shaders/glsl/fs_tree.bin | Bin 1181 -> 1190 bytes 6 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/12-lod/fs_tree.sc b/examples/12-lod/fs_tree.sc index 70376904..7b8e0fbb 100644 --- a/examples/12-lod/fs_tree.sc +++ b/examples/12-lod/fs_tree.sc @@ -34,7 +34,7 @@ void main() vec3 normal = normalize(v_normal); vec3 view = normalize(v_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; gl_FragColor = toGamma(color); diff --git a/examples/12-lod/lod.cpp b/examples/12-lod/lod.cpp index 943b7bb2..d47cc370 100644 --- a/examples/12-lod/lod.cpp +++ b/examples/12-lod/lod.cpp @@ -165,8 +165,8 @@ class Lod : public entry::AppI bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Mesh LOD transitions."); bgfx::dbgTextPrintf(0, 3, 0x0f, "Frame: % 7.3f[ms]", double(frameTime)*toMs); - float at[3] = { 0.0f, 1.0f, 0.0f }; - float eye[3] = { 0.0f, -distance, -2.0f }; + float at[3] = { 0.0f, 1.0f, 0.0f }; + float eye[3] = { 0.0f, 2.0f, -distance }; // Set view and projection matrix for view 0. const bgfx::HMD* hmd = bgfx::getHMD(); diff --git a/examples/runtime/shaders/dx11/fs_tree.bin b/examples/runtime/shaders/dx11/fs_tree.bin index e4bbcfac9024f5da9e9643c4489c4e1c9799360d..9b7564ecfd5c66cf728fd6f916fd697a7750cb6c 100644 GIT binary patch delta 85 zcmaFK)yh4=U)q4xCBn&h)Ar@cA$g|vS*spAo_eRxm63sg!C+$6drlP=1_lQphjVih hqc*b)ki{;8p%0{xdjRuCAkG