rdb
a9aa25577a
glgsg: Support updating SSBO data from the CPU (only UH_dynamic)
2025-12-31 21:23:25 +01:00
rdb
86b1304588
display: Support extracting only subset of SSBO
2025-12-31 20:45:26 +01:00
rdb
14b8cd74c2
tests: Fix GLSL shadow matrix unit test values
2025-12-22 16:16:31 +01:00
rdb
04e5cbe706
Add support for (occlusion-)metallic-roughness textures
...
Existing "selector" mode (which was unused and has been used to
implement ORM textures has been renamed to metallic-roughness, and new
modes have been added for occlusion and occlusion-metallic-roughness.
New GLSL input names have been added. The .egg format has been
extended. The Assimp loader has been updated. The shader generator now
handles occlusion maps, and a unit test for that is added.
2025-12-22 11:44:45 +01:00
rdb
f188c8a028
tests: Use approx comparison for test_depth_bias
2025-01-30 11:38:17 +01:00
rdb
3833866801
display: Add method to synchronously download SSBO contents
2025-01-25 18:08:54 +01:00
rdb
fc394e4c59
glgsg: Pass in osg_FrameNumber input via ShaderMatSpec mechanism
2024-08-23 21:08:50 +02:00
rdb
99225dfaef
shader: Unify ShaderPtrSpec and ShaderMatSpec mechanisms
2024-08-23 16:29:42 +02:00
rdb
dfc85b8a68
tests: Make shadowViewMatrix test less sensitive
2024-08-23 16:28:10 +02:00
rdb
e2ad8f2a2f
tests: Test additional properties of light source struct
2024-08-23 14:20:35 +02:00
rdb
d5d0b80dd3
tests: Add unit tests for GLSL light, material, fog structs
2024-08-23 12:35:01 +02:00
rdb
9145b6c729
Merge branch 'release/1.10.x'
2024-01-04 16:36:03 +01:00
rdb
edf4b7d448
tests: Also skip Cg unit tests on arm64 reporting as aarch64
...
[skip ci]
2023-10-22 12:24:33 +02:00
rdb
e01cb590de
Merge branch 'release/1.10.x'
2023-10-13 23:24:48 +02:00
rdb
225b577ccd
tests: Skip Cg tests on arm64 machines
2023-10-13 10:55:17 +02:00
WMOkiishi
f7f3179a89
Move test code from across `direct` to proper test modules
...
Closes #1480
2023-08-02 08:37:51 +02:00
git2323
518d4777fa
do not prefer framebuffer configs with excessive multisamples ( #1456 )
...
Co-authored-by: user1 <user1@user1.org>
2023-02-12 23:04:46 +00:00
rdb
e961ea99ac
Merge branch 'release/1.10.x'
2022-11-13 12:10:38 +01:00
rdb
0220a43ce0
shader: Fix support for `#pragma include <example.glsl>` in GLSL
2022-11-09 17:20:11 +01:00
rdb
316b0009ae
Merge branch 'release/1.10.x'
2022-10-31 23:10:39 +01:00
rdb
4c6df54d6f
tests: Fix failing window unit test on macOS
...
Fixes #804 (together with previous commit 979f194f49 )
2022-10-29 18:47:15 +02:00
rdb
979f194f49
tests: Load either 120 or 150 GLSL shaders depending on capabilities
...
Addresses part of #804
2022-10-29 18:46:59 +02:00
rdb
a111bb4442
tests: skip auto-shader tests if Cg shaders are not supported
...
Backport of 57b0be8647
2022-10-29 18:16:58 +02:00
rdb
0ae8d8f315
tests: Robustify depth range test case
2021-08-31 14:02:49 +02:00
rdb
53741ffa13
pgraph: Implement new DepthBiasAttrib to replace DepthOffsetAttrib
...
Fixes #1157
2021-08-26 10:47:07 +02:00
rdb
280175f267
display: Support specifying depth range on DisplayRegion
...
See https://discourse.panda3d.org/t/depthoffsetattrib-z-range-composition-order/27943/4
2021-08-26 10:42:25 +02:00
rdb
842452594d
Merge branch 'release/1.10.x'
2021-01-17 17:28:19 +01:00
rdb
3479c6eee2
tests: Add unit tests for GLSL usampler/isamspler/uimage/iimage
2021-01-17 12:13:59 +01:00
rdb
b655aa86c5
Merge branch 'release/1.10.x'
2020-08-17 13:05:51 +02:00
Mitchell Stokes
dd77bd4cdf
shadergen: Make use of material alpha if present ( #925 )
...
The material alpha overrides alpha values from flat color or vertex colors. This follows what the fixed-function pipeline does.
Fixes #912
2020-08-17 12:27:03 +02:00
Fireclaw
0f2cf6d14b
Add maximized property to WindowProperties, plus implementation ( #809 )
...
Closes #809
Co-authored-by: rdb <git@rdb.name>
2020-06-20 23:00:52 +02:00
rdb
6c66c8618d
tests: add unit test for passing plain mat3/mat4 to GLSL shader
2020-01-25 17:00:48 +01:00
rdb
bc563c8664
Merge branch 'release/1.10.x'
2019-08-03 11:24:05 +02:00
Mitchell Stokes
369dccbab9
tests: Add tests around compiling GLSL and Cg shaders ( #622 )
2019-08-01 12:32:06 +02:00
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