From 2dc5d89967aeff0a9e79a2a3f499cd3d4b12a58b Mon Sep 17 00:00:00 2001 From: cutealien Date: Tue, 21 Jun 2022 18:28:13 +0000 Subject: [PATCH] Make example 27 run with burnings again. Sorry, last change removed a bit too much. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6410 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/27.PostProcessing/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/27.PostProcessing/main.cpp b/examples/27.PostProcessing/main.cpp index a55a9f31..6d457164 100644 --- a/examples/27.PostProcessing/main.cpp +++ b/examples/27.PostProcessing/main.cpp @@ -139,8 +139,11 @@ public: // set the material of screen quad Driver->setMaterial(Material); - // set world matrix to fit the quad to full viewport (we only use ETS_WORLD in the shader, so view, projection currently don't matter) + // set world matrix to fit the quad to full viewport Driver->setTransform(video::ETS_WORLD, core::IdentityMatrix); + // view & projection not used in shader, but matter to burnings driver + Driver->setTransform(video::ETS_VIEW, core::IdentityMatrix); + Driver->setTransform(video::ETS_PROJECTION, core::IdentityMatrix); // draw screen quad Driver->drawVertexPrimitiveList(Vertices, 4, Indices, 2);