Revision | 07e82d95d5f8b367887bbe3dd5e939050c6e17f9 (tree) |
---|---|
Time | 2024-12-11 02:20:43 |
Author | sebastian_bugiu |
Commiter | sebastian_bugiu |
Forgot to initialize SMAA.
@@ -90,6 +90,7 @@ | ||
90 | 90 | #include "HotshotSceneCompositor.h" |
91 | 91 | #include "OgreHardwarePixelBuffer.h" |
92 | 92 | #include "OgreRenderTexture.h" |
93 | +#include "Utils/SmaaUtils.h" | |
93 | 94 | |
94 | 95 | #ifdef USE_PCZ |
95 | 96 | #include <OgrePCZSceneManager.h> |
@@ -4012,6 +4013,11 @@ | ||
4012 | 4013 | Ogre::RenderWindow* renderWindow = (Ogre::RenderWindow*)getLongAsPointer(renderWindowPtr); |
4013 | 4014 | Ogre::Camera* camera = (Ogre::Camera*)getLongAsPointer(cameraPtr); |
4014 | 4015 | |
4016 | + // Also enable SMAA since we are connecting to it in the workspace. | |
4017 | + Demo::SmaaUtils::initialize(root->getRenderSystem(), | |
4018 | + Demo::SmaaUtils::SMAA_PRESET_ULTRA, | |
4019 | + Demo::SmaaUtils::EdgeDetectionColour); | |
4020 | + | |
4015 | 4021 | Ogre::CompositorManager2* compositorManager = root->getCompositorManager2(); |
4016 | 4022 | |
4017 | 4023 | //Now setup the regular renderer |
@@ -74,6 +74,7 @@ | ||
74 | 74 | ${OGRE_INCLUDE_PATH}/RenderSystems/GLES3/src/EGL/Vao |
75 | 75 | ${OGRE_INCLUDE_PATH}/RenderSystems/GLES3/src/EGL/WIN32 |
76 | 76 | ${OGRE_INCLUDE_PATH}/RenderSystems/NULL/src |
77 | +${OGRE_INCLUDE_PATH}/Samples/2.0/Common/include | |
77 | 78 | |
78 | 79 | ${OGREDEPS_BUILD_INCLUDE_PATH}/include/ |
79 | 80 | C:/Program\ Files/Java/jdk-1.8/include |
@@ -210,6 +211,7 @@ | ||
210 | 211 | #${OGRE_LIB_PATH}/libRenderSystem_GLES3Static${DBG_END}.a |
211 | 212 | #${OGRE_LIB_PATH}/libOgreMainStatic${DBG_END}.a |
212 | 213 | #${OGRE_LIB_PATH}/libRenderSystem_GLES3Static${DBG_END}.a |
214 | + #${OGRE_LIB_PATH}/OgreSamplesCommon${DBG_END}.a | |
213 | 215 | #${OGRE_DEPS_LIB_PATH}/libfreetype.a |
214 | 216 | #${OGRE_DEPS_LIB_PATH}/libzziplib.a |
215 | 217 | #${OGRE_DEPS_LIB_PATH}/libFreeImage.a |
@@ -230,6 +232,7 @@ | ||
230 | 232 | #${OGRE_LIB_PATH}/RenderSystem_GL3PlusStatic${DBG_END}.lib |
231 | 233 | ${OGRE_LIB_PATH}/RenderSystem_Direct3D11Static${DBG_END}.lib |
232 | 234 | #${OGRE_LIB_PATH}/RenderSystem_NULLStatic${DBG_END}.lib |
235 | + ${OGRE_LIB_PATH}/OgreSamplesCommon${DBG_END}.lib | |
233 | 236 | #c:/glew-2.0.0/lib/Release/Win32/glew32.lib |
234 | 237 | #c:/glew-2.0.0/lib/Release/Win32/glew32s.lib |
235 | 238 | glu32.lib |