Commit Graph

24 Commits

Author SHA1 Message Date
rdb 6df700939a glsl: make ParamVecBase4 and ParamVecBase4i work with ptr inputs 2019-04-14 23:08:02 +02:00
rdb 57b0be8647 tests: skip auto-shader tests if Cg shaders are not supported 2019-04-02 21:27:08 +02:00
rdb 69decc17ff tests: raise GLSL version from 1.30 to 1.50 for compute shader 2018-12-23 22:28:52 +01:00
rdb 0e7302e86a tests: add a few basic unit tests for WindowProperties class 2018-11-12 18:14:48 +01:00
Sam Edwards 3b7b9cd18c tests: Enhance GLSL test
- Don't assume GLSL 4.30 is available just because the driver
  supports compute shaders. Drivers before OpenGL 4.3 may still
  offer the extension.

- Use GLSL 1.30 by default, and turn on additional features
  using extensions. Skip any tests requiring extensions that
  aren't supported by the driver.

- Unsigned literal ints should have a 'u' suffix.

- Clean up a few dead Python expressions
2018-10-20 17:55:46 -06:00
rdb 93a3e7e699 Changes to make ColorAttrib behavior more consistent:
- T_off now actually properly disables vertex colours
- T_vertex is now the default, to preserve the previous behaviour
- ShaderGenerator behavior is now the same as in the FFP
- tests are updated to verify new behavior
- tests now properly use vertex colours, previously they accidentally only used flat colors
- With color-scale-via-lighting off and no color scale, color is no longer munged
- p3d_Color in GLSL shaders is now properly set to white instead of black with T_off mode
- In DX9 shaders will now sample white color for absent or disabled vertex color

Fixes #401
Also see #371
2018-10-08 22:09:22 +02:00
rdb 914ef2e13d tests: add various unit tests for color-related render states 2018-10-08 01:01:08 +02:00
rdb 102a256b05 tests: remove accidentally added debug image output 2018-10-07 23:03:07 +02:00
rdb f12bc29d6d tests: do not attempt to run GLSL tests without buffer tex support 2018-07-26 22:58:15 +02:00
rdb 71e18eb960 tests: add test for setting near distance to infinitiy 2018-07-17 23:23:48 +02:00
rdb eafab53729 tests: fix depth buffer test failure 2018-07-17 22:59:38 +02:00
rdb 06539f5c66 glsl: support passing uint variables to shader 2018-07-17 22:32:34 +02:00
rdb c434e08a9c tests: add various depth buffer rendering tests 2018-07-12 14:20:31 +02:00
rdb 7c8426a79f tests: fix int overflow error with GLSL shader test on some drivers 2018-07-08 22:28:52 +02:00
rdb c5dd683366 tests: add unit test for writing to and extracting buffer textures 2018-07-04 20:55:07 +02:00
rdb c1e5a71904 tests: ensure FrameBufferProperties has working copy constructor 2018-06-09 10:38:03 +02:00
rdb d8bf9d4b55 tests: skip display tests if pipe cannot create offscreen buffers 2018-06-03 22:33:12 +02:00
rdb bfff7e1000 tests: don't assert if pipe cannot create physical windows 2018-03-08 11:41:00 +01:00
rdb f37c070c7c tests: cleanup GraphicsEngine to prevent shutdown freeze on windows
This occurs with the multithreaded render pipeline.  It's not an issue when using ShowBase because ShowBase also explicitly calls this during shutdown.
2018-01-03 00:07:50 +01:00
rdb 97eb734765 tests: add test cases for GLSL shaders 2017-12-24 20:46:53 +01:00
rdb 2f910ccd7c tests: fixes for the window tests 2017-12-24 20:34:06 +01:00
rdb 3be22679a4 display: also avoid getting more than 24 color bits if 0 were requested
See issue #197
2017-11-26 00:06:03 +01:00
rdb 0edac2e94a Work around gamma issue with 64-bit color depths on NVIDIA hardware 2017-11-16 23:52:12 +01:00
Mitchell Stokes aabf009ff0 tests: Add test_window_basic
This test just makes sure that created windows match the default
WindowProperties (with a few exceptions).

This also adds the following fixtures:

  * graphics_engine - scope='session', GraphicsEngine
  * graphics_pipe - scope='session', default GraphicsPipe
  * window - scope='test', GraphicsWindow with default framebuffer and window properties
2017-11-03 19:25:13 +01:00