• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision07e82d95d5f8b367887bbe3dd5e939050c6e17f9 (tree)
Time2024-12-11 02:20:43
Authorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Forgot to initialize SMAA.

Change Summary

Incremental Difference

diff -r 43269a1692b3 -r 07e82d95d5f8 android/src/main/jni/blackholedarksunmain.cpp
--- a/android/src/main/jni/blackholedarksunmain.cpp Mon Dec 09 21:41:59 2024 +0100
+++ b/android/src/main/jni/blackholedarksunmain.cpp Tue Dec 10 18:20:43 2024 +0100
@@ -90,6 +90,7 @@
9090 #include "HotshotSceneCompositor.h"
9191 #include "OgreHardwarePixelBuffer.h"
9292 #include "OgreRenderTexture.h"
93+#include "Utils/SmaaUtils.h"
9394
9495 #ifdef USE_PCZ
9596 #include <OgrePCZSceneManager.h>
@@ -4012,6 +4013,11 @@
40124013 Ogre::RenderWindow* renderWindow = (Ogre::RenderWindow*)getLongAsPointer(renderWindowPtr);
40134014 Ogre::Camera* camera = (Ogre::Camera*)getLongAsPointer(cameraPtr);
40144015
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+
40154021 Ogre::CompositorManager2* compositorManager = root->getCompositorManager2();
40164022
40174023 //Now setup the regular renderer
diff -r 43269a1692b3 -r 07e82d95d5f8 desktop/CMakeLists.txt
--- a/desktop/CMakeLists.txt Mon Dec 09 21:41:59 2024 +0100
+++ b/desktop/CMakeLists.txt Tue Dec 10 18:20:43 2024 +0100
@@ -74,6 +74,7 @@
7474 ${OGRE_INCLUDE_PATH}/RenderSystems/GLES3/src/EGL/Vao
7575 ${OGRE_INCLUDE_PATH}/RenderSystems/GLES3/src/EGL/WIN32
7676 ${OGRE_INCLUDE_PATH}/RenderSystems/NULL/src
77+${OGRE_INCLUDE_PATH}/Samples/2.0/Common/include
7778
7879 ${OGREDEPS_BUILD_INCLUDE_PATH}/include/
7980 C:/Program\ Files/Java/jdk-1.8/include
@@ -210,6 +211,7 @@
210211 #${OGRE_LIB_PATH}/libRenderSystem_GLES3Static${DBG_END}.a
211212 #${OGRE_LIB_PATH}/libOgreMainStatic${DBG_END}.a
212213 #${OGRE_LIB_PATH}/libRenderSystem_GLES3Static${DBG_END}.a
214+ #${OGRE_LIB_PATH}/OgreSamplesCommon${DBG_END}.a
213215 #${OGRE_DEPS_LIB_PATH}/libfreetype.a
214216 #${OGRE_DEPS_LIB_PATH}/libzziplib.a
215217 #${OGRE_DEPS_LIB_PATH}/libFreeImage.a
@@ -230,6 +232,7 @@
230232 #${OGRE_LIB_PATH}/RenderSystem_GL3PlusStatic${DBG_END}.lib
231233 ${OGRE_LIB_PATH}/RenderSystem_Direct3D11Static${DBG_END}.lib
232234 #${OGRE_LIB_PATH}/RenderSystem_NULLStatic${DBG_END}.lib
235+ ${OGRE_LIB_PATH}/OgreSamplesCommon${DBG_END}.lib
233236 #c:/glew-2.0.0/lib/Release/Win32/glew32.lib
234237 #c:/glew-2.0.0/lib/Release/Win32/glew32s.lib
235238 glu32.lib