Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Many mostly graphics related changes#767

Open
paulwedeck wants to merge 111 commits into
jsettlers:masterfrom
paulwedeck:graphics
Open

Many mostly graphics related changes#767
paulwedeck wants to merge 111 commits into
jsettlers:masterfrom
paulwedeck:graphics

Conversation

@paulwedeck

Copy link
Copy Markdown
Contributor

I reduced the number of shader to three:

  • normal unified shader (now including texes and colors functionality) (GL(ES) 2.0)
  • unified-array to bundle multiple drawings of a single quad at multiple locations/colors (GLES 3.0 /GL_EXT_draw_instanced
  • unified-multi to bundle drawing of different objects at different locations (GLES32/ GL_EXT_geometry_shader4 &GL_ARB_uniform_buffer_object)

There no longer is any pre gl2 render path because there are barly any remaining users:

I rewrote the FogOfWar algorithm to better fit the Backgrounds needs and to respect to current game speed/pause status.

GeometryHandles are no replaced by *DrawHandles.
Most Textures and Geometries are bundled together in ManagedHandles hold by GLDrawContext that only create a single buffer and texture instead of one per SingleImage. Only parts of ManagedHandles can be used to draw via the unified-multi shader.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants