Luke Benstead
9bfb0c6eea
Fix bug from last commit, don't apply lights at all if none are enabled
2020-05-22 07:20:08 +01:00
Luke Benstead
2b9d8520bc
Lighting perf improvements
2020-05-11 20:34:09 +01:00
Luke Benstead
ab6725c5e3
Restore MAX_LIGHTS to 8
2020-05-08 10:00:03 +01:00
Luke Benstead
8974051e38
Don't use memcpy when copying colours
2020-05-08 09:49:01 +01:00
Luke Benstead
cca09a298e
Move enabled state onto the LightSource
2020-05-08 07:19:56 +01:00
Luke Benstead
814f228db9
Lighting optimisations
2020-05-07 20:58:24 +01:00
Luke Benstead
cf90d10cb9
Fix clipping 2020
2020-04-03 19:12:42 +00:00
Luke Benstead
a1eda16a26
Update SH4_math.h and stop storing the near plane
2020-03-21 21:21:46 +00:00
Hayden Kowalchuk
5a89fbcd7d
fix: private.h
...
- add convenience defines
- note struct ordering and padding
- add const
2020-03-05 14:57:30 -05:00
Luke Benstead
7e7d90b606
Inline some things
2020-02-29 13:25:30 +00:00
Luke Benstead
4ebd112784
Attempt to fix specular
2020-02-17 20:29:12 +00:00
Luke Benstead
2178d2f6d7
Improve lighting performance
...
This is (another) first pass at improving the performance of the lighting code.
As part of this refactor *we have lost glColorMaterial*. I need to figure out a
nice way of implementing it without slowing the common code path.
2020-02-16 20:36:49 +00:00
Luke Benstead
b2a2e71795
Much faster lighting implementation
2019-12-27 10:36:30 +00:00
Luke Benstead
62b53f0fb1
Simplify swapVertex
2019-11-30 10:07:23 +00:00
Luke Benstead
11cd54bc0b
Add partial support for GL_ARB_vertex_type_2_10_10_10_rev and also GL_NORMALIZE
2019-11-18 17:39:09 +00:00
Luke Benstead
d7e424a766
Initial implementation of a fast-path (currently some corruption)
2019-09-30 09:14:43 +01:00
Luke Benstead
08ba39f6d1
Fix twiddled mipmap generation
2019-09-25 13:45:08 +01:00
Luke Benstead
2e1e28ce51
More mipmap generation fixes
2019-09-25 13:32:13 +01:00
Luke Benstead
36a3f7082f
Implement mipmap generation for twiddled textures
2019-09-25 13:10:34 +01:00
Luke Benstead
e14db20a41
Fix a bunch of mipmap issues
2019-09-24 21:26:17 +01:00
Luke Benstead
2b53f50c46
Add some copy safety and remove some print statements
2019-09-24 19:39:23 +01:00
Luke Benstead
150c95bd33
Huge refactor of mipmap handling. All textures are now stored twiddled on the PVR
2019-09-24 15:47:23 +01:00
Luke Benstead
e39632bcc4
Refactor matrix management and clipping
2019-09-14 20:51:47 +01:00
Luke Benstead
3af18cb514
Refactor the perspective divide to work with glDepthRange
2019-09-08 17:27:56 +01:00
Luke Benstead
22690600d0
Don't include kos headers from gl.h
2019-09-06 09:35:33 +01:00
Luke Benstead
b82d28130d
Rewrite the lighting code
2019-08-01 20:21:13 +01:00
Luke Benstead
62743d42cb
Only allocate space for mipmaps when necessary
2019-04-17 14:55:30 +01:00
Luke Benstead
a75ced3fef
Speed up immediate mode submission
2019-03-29 11:26:19 +00:00
Luke Benstead
bdeb9cd45a
Restore clipping case that apparently can happen after all
2019-03-25 19:04:50 +00:00
Luke Benstead
291e82d18a
Rename ClipVertex -> Vertex
2019-03-25 09:44:59 +00:00
Luke Benstead
5e6927d9a1
Huge refactor of the drawing code
2019-03-24 08:09:02 +00:00
Luke Benstead
7c33f13438
Allow configuring initial capacities
2019-03-13 15:43:50 +00:00
Luke Benstead
724ff628aa
Fix some signedness issues
2019-03-13 15:14:09 +00:00
Luke Benstead
588c082ec8
Allow specifying palette, autosort, memory options via glKosInitEx
2019-03-11 19:07:59 +00:00
Luke Benstead
04dab8da9a
Implement glAlphaFunc and glEnable(GL_ALPHA_TEST)
2019-03-10 17:53:58 +00:00
Luke Benstead
91c3b66d73
Add GL_MODELVIEW_MATRIX as an option to glGetFloatv
2019-03-10 12:30:39 +00:00
Luke Benstead
259a82e69f
Add support for multiple shared palettes
2019-03-10 11:18:56 +00:00
Luke Benstead
864dc45d10
Allocate palette slots on a FIFO basis
2019-03-09 14:32:50 +00:00
Luke Benstead
5f7fef2cf9
Prefix non-static private functions with '_gl'
2019-03-03 19:06:01 +00:00
Luke Benstead
926214bd82
Prefix some non-static private functions with '_gl'
2019-03-03 19:02:25 +00:00
Luke Benstead
02937ccd2c
Add stub with just GL_PROJECTION_MATRIX supported
2019-02-28 08:46:13 +00:00
Luke Benstead
6d2c47bda1
Implement GL_EXT_shared_texture_palette
2019-02-21 21:58:31 +00:00
Luke Benstead
571438ef4e
Implement glColorTableEXT
2019-02-21 20:35:18 +00:00
Luke Benstead
c84f211ad0
More work towards paletted textures
2018-09-22 20:45:17 +01:00
Luke Benstead
baf7cf5bdd
Stub out glColorTableEXT
2018-09-20 15:01:13 +01:00
Luke Benstead
7100ebe5a9
Prefix some non-static private methods
2018-09-15 11:45:38 +01:00
Luke Benstead
17c9699966
More clipping fixes
2018-09-08 20:53:28 +01:00
Luke Benstead
b29303fb6c
Implement glColorMaterial
2018-08-22 09:24:49 +01:00
Luke Benstead
21f8f9d855
Properly restore state after glEnd
2018-08-21 16:15:43 +01:00
Luke Benstead
9b0322ce8a
Properly restore enabled client state when using immediate mode
2018-08-21 16:08:06 +01:00