Skip to content

Commit

Permalink
CreateCompositor🪄 rework, split screen uses RTT and Combine, wip 2 pl…
Browse files Browse the repository at this point in the history
…r, refract depth bad
  • Loading branch information
cryham committed Nov 5, 2024
1 parent 2da634e commit f910616
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 278 deletions.
9 changes: 5 additions & 4 deletions src/common/AppGui.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,15 @@ class AppGui : public BGui
// 🪄 main setup ----------------
std::vector<Ogre::CompositorNodeDef*> vNodes; // stuff we create and destroy
std::vector<Ogre::CompositorWorkspace*> vWorkspaces;
std::vector<Ogre::TextureGpu*> vRtt, vTex;
std::vector<Ogre::CompositorWorkspaceDef*> vWorkDefs;
constexpr static const char* csShadow = "ShadowMapFromCodeShadowNode";

void CreateCompositor(), SetupCompositor(), DestroyCompositor();
void AddGuiShadows(bool vr_mode = false, int plr = 0, bool gui = true);
// returns rtt if made, when not final wnd // cur view num / all
Ogre::TextureGpu* CreateCompositor(int view, int splits, float width, float height);

// util get SR3_ names for player
Ogre::String getWorkspace(bool worksp=1, int plr=0), getWsInfo();
void SetupCompositors(), DestroyCompositors(); // full
Ogre::String getWsInfo(); // log util


// 👥 Split screen ----------------
Expand Down
Loading

0 comments on commit f910616

Please sign in to comment.