From 0f48d59a014015ccb66457a63d0d81719f06f7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 9 Nov 2014 11:55:45 -0800 Subject: [PATCH] Fixed typo. --- examples/09-hdr/hdr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 0f696204..0b3f8455 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -236,7 +236,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) float speed = 0.37f; float middleGray = 0.18f; float white = 1.1f; - float treshold = 1.5f; + float threshold = 1.5f; int32_t scrollArea = 0; @@ -285,7 +285,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) imguiSlider("Middle gray", middleGray, 0.1f, 1.0f, 0.01f); imguiSlider("White point", white, 0.1f, 2.0f, 0.01f); - imguiSlider("Treshold", treshold, 0.1f, 2.0f, 0.01f); + imguiSlider("Threshold", threshold, 0.1f, 2.0f, 0.01f); imguiEndScrollArea(); imguiEndFrame(); @@ -425,10 +425,10 @@ int _main_(int /*_argc*/, char** /*_argv*/) screenSpaceQuad(1.0f, 1.0f, s_originBottomLeft); bgfx::submit(6); - float tonemap[4] = { middleGray, square(white), treshold, 0.0f }; + float tonemap[4] = { middleGray, square(white), threshold, 0.0f }; bgfx::setUniform(u_tonemap, tonemap); - // Bright pass treshold is tonemap[3]. + // Bright pass threshold is tonemap[3]. setOffsets4x4Lum(u_offset, width/2, height/2); bgfx::setTexture(0, u_texColor, fbtextures[0]); bgfx::setTexture(1, u_texLum, lum[4]);