Skip to content

Commit

Permalink
Move postproc components to dagon.render.postproc
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Dec 23, 2024
1 parent 2708f0f commit a3dcc7b
Show file tree
Hide file tree
Showing 23 changed files with 57 additions and 96 deletions.
2 changes: 1 addition & 1 deletion src/dagon/extra/water.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2018-2022 Timur Gafarov
Copyright (c) 2018-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand Down
4 changes: 2 additions & 2 deletions src/dagon/game/game.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand Down Expand Up @@ -43,7 +43,7 @@ import dagon.graphics.entity;
import dagon.resource.scene;
import dagon.render.renderer;
import dagon.render.deferred;
import dagon.render.postprocrenderer;
import dagon.render.postproc;
import dagon.render.presentrenderer;
import dagon.render.hudrenderer;

Expand Down
1 change: 0 additions & 1 deletion src/dagon/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public
import dagon.extra;
import dagon.game;
import dagon.graphics;
import dagon.postproc;
import dagon.render;
import dagon.resource;
import dagon.ui;
Expand Down
41 changes: 0 additions & 41 deletions src/dagon/postproc/shaders/package.d

This file was deleted.

4 changes: 2 additions & 2 deletions src/dagon/render/deferred/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import dagon.render.framebuffer;
public import dagon.render.deferred.passes;
public import dagon.render.deferred.shaders;
public import dagon.render.deferred.gbuffer;
import dagon.postproc.filterpass;
import dagon.postproc.shaders.denoise;
import dagon.render.postproc.filterpass;
import dagon.render.postproc.shaders.denoise;

class DeferredRenderer: Renderer
{
Expand Down
4 changes: 2 additions & 2 deletions src/dagon/render/package.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand Down Expand Up @@ -36,7 +36,7 @@ public
import dagon.render.view;
import dagon.render.renderer;
import dagon.render.deferred;
import dagon.render.postprocrenderer;
import dagon.render.postproc;
import dagon.render.presentrenderer;
import dagon.render.hudrenderer;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.blurpass;
module dagon.render.postproc.blurpass;

import std.stdio;

Expand All @@ -39,7 +39,7 @@ import dagon.graphics.shader;
import dagon.render.pipeline;
import dagon.render.pass;
import dagon.render.framebuffer;
import dagon.postproc.shaders.blur;
import dagon.render.postproc.shaders.blur;

class BlurPass: RenderPass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.filterpass;
module dagon.render.postproc.filterpass;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,29 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.render.postprocrenderer;
module dagon.render.postproc;

import dlib.core.memory;
import dlib.core.ownership;

import dagon.core.event;
import dagon.core.time;
import dagon.core.bindings;
import dagon.graphics.texture;
import dagon.resource.scene;
import dagon.render.renderer;
import dagon.render.pass;
import dagon.render.view;
import dagon.render.framebuffer;
import dagon.render.deferred.gbuffer;
import dagon.postproc.filterpass;
import dagon.postproc.blurpass;
import dagon.postproc.presentpass;
import dagon.postproc.shaders.dof;
import dagon.postproc.shaders.brightpass;
import dagon.postproc.shaders.glow;
import dagon.postproc.shaders.motionblur;
import dagon.postproc.shaders.tonemap;
import dagon.postproc.shaders.fxaa;
import dagon.postproc.shaders.lut;
import dagon.postproc.shaders.lensdistortion;

import dagon.core.bindings;
public
{
import dagon.render.postproc.blurpass;
import dagon.render.postproc.filterpass;
import dagon.render.postproc.presentpass;
import dagon.render.postproc.shaders;
}

class DoubleBuffer: Framebuffer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.presentpass;
module dagon.render.postproc.presentpass;

import std.stdio;

Expand All @@ -37,7 +37,7 @@ import dagon.graphics.screensurface;
import dagon.render.pipeline;
import dagon.render.pass;
import dagon.render.framebuffer;
import dagon.postproc.shaders.present;
import dagon.render.postproc.shaders.present;

class PresentPass: RenderPass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2017-2022 Timur Gafarov
Copyright (c) 2017-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.blur;
module dagon.render.postproc.shaders.blur;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.brightpass;
module dagon.render.postproc.shaders.brightpass;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.denoise;
module dagon.render.postproc.shaders.denoise;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.dof;
module dagon.render.postproc.shaders.dof;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.fxaa;
module dagon.render.postproc.shaders.fxaa;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.glow;
module dagon.render.postproc.shaders.glow;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.lensdistortion;
module dagon.render.postproc.shaders.lensdistortion;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.lut;
module dagon.render.postproc.shaders.lut;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.motionblur;
module dagon.render.postproc.shaders.motionblur;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,12 +25,19 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc;
module dagon.render.postproc.shaders;

public
{
import dagon.postproc.blurpass;
import dagon.postproc.filterpass;
import dagon.postproc.presentpass;
import dagon.postproc.shaders;
import dagon.render.postproc.shaders.blur;
import dagon.render.postproc.shaders.brightpass;
import dagon.render.postproc.shaders.denoise;
import dagon.render.postproc.shaders.dof;
import dagon.render.postproc.shaders.fxaa;
import dagon.render.postproc.shaders.glow;
import dagon.render.postproc.shaders.lensdistortion;
import dagon.render.postproc.shaders.lut;
import dagon.render.postproc.shaders.motionblur;
import dagon.render.postproc.shaders.present;
import dagon.render.postproc.shaders.tonemap;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2022 Timur Gafarov
Copyright (c) 2019-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
Expand All @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.present;
module dagon.render.postproc.shaders.present;

import std.stdio;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.postproc.shaders.tonemap;
module dagon.render.postproc.shaders.tonemap;

import std.stdio;

Expand Down
Loading

0 comments on commit a3dcc7b

Please sign in to comment.