Commit Graph

52 Commits

Author SHA1 Message Date
Brandon Wright 0d137c1224 Save mipmap_input parameter to custom config. 2019-03-24 15:57:59 -05:00
OV2 51e7da6751 Get rid of some more warnings 2019-02-23 15:01:59 +01:00
Brandon Wright 4bd0fd5bf7 GTK: Use system DefaultTBuiltInResource. 2019-02-22 10:57:45 -06:00
Brandon Wright 34970d3e2a Use C++ initialize function. 2019-02-18 18:28:00 -06:00
Brandon Wright 1222518dc4 Update SPIRV-Cross. 2019-02-18 17:22:13 -06:00
Brandon Wright c74b643554 Shaders: MSVC wants this explicit. 2019-01-30 12:53:47 -06:00
Brandon Wright a3149db714 Shaders: Remove 10-bit format identifiers. 2019-01-30 12:50:33 -06:00
Brandon Wright 4942c0560c Formatting. 2019-01-30 10:39:18 -06:00
Brandon Wright fc31f47fc2 Shaders: Scan source code in as few passes as possible.
Improves loading time of crt-royale significantly.
2019-01-30 10:25:19 -06:00
Brandon Wright f825f14a06 Shaders: Try to clean up in case we reuse GLSLShader. 2019-01-29 17:49:40 -06:00
Brandon Wright 3426f146f1 Shaders: Oops. Add scale check to Y, too. 2019-01-27 20:26:56 -06:00
Brandon Wright 9b67d0ad8b Shaders: Use mipmap_input flag. 2019-01-27 20:14:28 -06:00
Brandon Wright 5fc0271330 Shaders: Show errors on file load with name in "". 2019-01-27 19:12:42 -06:00
Brandon Wright 9523f10518 Add license stub. 2019-01-27 18:00:37 -06:00
Brandon Wright 8c8805da40 Slang: Implement feedback support. See below.
This uses a complex workaround because we normally draw the last
pass straight to the screen. Now, only in the event that feedback is
enabled and only if the last pass uses it, we draw to a texture and use
glBlitFramebuffer to draw to the screen (saved_framebuffer) instead.
2019-01-27 17:43:22 -06:00
Brandon Wright 58e1bfadfa Revert "Revert "Slang: Feedback support. Doesn't completely work yet.""
This reverts commit 814323513d.
2019-01-27 16:28:18 -06:00
Brandon Wright 814323513d Revert "Slang: Feedback support. Doesn't completely work yet."
This reverts commit 9536daa09b.
2019-01-26 18:13:32 -06:00
Brandon Wright 9536daa09b Slang: Feedback support. Doesn't completely work yet.
We don't commit the last stage to a texture any more, so feedback can't
read it. That would need to be reverted for this to work.
2019-01-26 17:57:03 -06:00
Brandon Wright d316da9a5c Slang: Opposite of what it was before. This is correct. 2019-01-26 11:52:24 -06:00
Brandon Wright d0bc12522b Slang: This isn't right, actually. 2019-01-25 20:29:16 -06:00
Brandon Wright 65b38ed36b Revert "Shaders: Trim whitespace and comments on preset strings."
This reverts commit 4c3d886dab.
2019-01-25 20:09:06 -06:00
Brandon Wright 02be8ba1f2 Shaders: Add support for grayscale PNGs
GTK+: Fix invalid texture clear.
2019-01-25 20:01:52 -06:00
Brandon Wright 4c3d886dab Shaders: Trim whitespace and comments on preset strings.
Report some file open failures.
2019-01-25 18:51:50 -06:00
Brandon Wright 61f5141bcc Sizes were backwards.
GTK+: Fix .slangp custom extension.
2019-01-25 17:54:55 -06:00
Brandon Wright febae438c6 Add SPIRV-Cross submodule. 2019-01-25 13:39:13 -06:00
Brandon Wright 01f4fed8b5 Slang shader support. 2019-01-25 13:28:24 -06:00
Brandon Wright 0e559cd046 Don't use move on return value. 2019-01-18 15:14:32 -06:00
Brandon Wright 2b5d9af6ca More prep of shader files. 2019-01-13 15:52:32 -06:00
Brandon Wright 8c24f6d49f Check for CR in correct string. 2019-01-08 20:17:08 -06:00
Brandon Wright 4207ddc9d2 Simplify shader string handling a bit. 2019-01-08 19:44:43 -06:00
Brandon Wright 405aee6d1e Clean up shader files a bit. 2019-01-08 17:18:17 -06:00
Brandon Wright 51909e0cb4 Fix PNG usage without preprocessor check. 2019-01-04 10:52:11 -06:00
Brandon Wright f0ddb097f9 Mark all of GTK+ with header stub, and a couple others. 2018-11-15 17:42:29 -06:00
Brandon Wright b84a8fbd5b glsl: Use core-compatible OpenGL calls.
* Remove glTexCoordPointer because it wasn't affecting anything
anyway.
* Use GL_TRIANGLE_STRIP instead of deprecated GL_QUADS.
2018-10-27 18:00:15 -05:00
Brandon Wright 58e04558c6 Save framebuffer. 2018-10-22 13:56:18 -05:00
Brandon Wright 171a20cb6d Use some more compatible OpenGL version checking. 2018-05-28 18:40:29 -05:00
Brandon Wright 8200a7bb5f Drop Cg shaders from GTK+ port. 2018-05-24 13:00:49 -05:00
OV2 ba76c1c2be win32: handle unicode when loading glsl shaders 2018-05-24 18:19:00 +02:00
OV2 06f84ee6b3 win32: add shader parameters dialog 2018-05-24 15:54:06 +02:00
Brandon Wright 9bd9133fbc Fix declaration so it's obvious I switched variables around. 2018-05-21 18:08:22 -05:00
Brandon Wright b9b60a8e60 GLSL: Use a viewport callback to size final pass. 2018-05-21 14:36:13 -05:00
OV2 d8ef082cfe Clear config on destroy 2018-05-20 20:51:20 +02:00
OV2 8b55dd617d Set default wrap mode 2018-05-20 20:51:20 +02:00
OV2 ad2c72d26c win32: fist step glsl shaders 2018-05-20 20:51:20 +02:00
Brandon Wright 2a2675938e Use lastpass variable. 2018-05-19 14:10:48 -05:00
Brandon Wright 0d75e78e79 Fix first frame being upside down with motion blur shader. 2018-05-19 14:09:21 -05:00
Brandon Wright df19fc3f11 Delete contents after use. 2018-05-14 18:27:06 -05:00
Brandon Wright 09ea2d0e67 Various fixes. 2018-05-14 17:19:55 -05:00
Brandon Wright cc8fd9c231 Add wrap_mode parameter. 2018-05-14 14:27:07 -05:00
Brandon Wright a42498b161 Fix a bunch of warnings. 2018-05-13 20:19:21 -05:00