10 Commits

Author SHA1 Message Date
6d2adb0f31 Refactored texture loading system to allow runtime editing and atlases
- Removed TextureManager, use TextureLoader instead
  - Removed PngLoader, AWT image compat moved to TextureUtils
- Pixels renamed to TextureData
- Added TextureDataEditor for runtime editing of TextureData
- Added SimpleTextures to load random, one-off textures
- Added Atlases to load textures into runtime-compiled atlases
  - BlockRenders now contains a method to load a block texture properly
- Moved block textures into assets/textures/blocks/
2020-08-15 22:15:26 +04:00
45b0ad2888 Switched back to GLSL 1.20 because my laptop is a brick 2020-08-09 11:40:41 +03:00
7dee1eb95f Re-written flat render pipeline to support transforms
FlatRender now supports arbitrary transforms
GLSL 1.40 is now used in shaders
2020-08-03 21:44:36 +03:00
1ed8f93af4 Added GUI render and support for faces without textures
- Added FlatRenderProgram to render 2D graphics
  - Can be used as-is
  - Supports rectangular coordinate-aligned nested masks
- Added AssembledFlatLayer to cache 2D graphics
  - Use RenderTarget for add elements during reassembly
- ShapeRenderProgram now allows null textures (defaults to white BG)
- Sprite now deduces size based on primitive's content size
  - unless given size explicitly
- ShapeRenderHelper.*WorldTransform methods renamed to .*Transform
2020-08-01 16:23:31 +03:00
8aa0bb8aa0 Refactored ShapeRenderProgram into SRP and WorldRenderProgram
- ShapeRP now handles positions, textures and color multipliers only,
normals, view transforms and light calculations are now in WorldRP
- Renamed WorldRenderer to ShapeRenderHelper
- Moved normal computation to WorldRP code from Face
- No default ShapeRP exists, methods in Faces and Shapes now explicitly
require a program
- Removed unnecessary glBind from texture loader
- Refactored and renamed GLSL code
- Added a view bobbing test, enable with I_WANT_TO_THROW_UP in
LayerWorld
2020-08-01 00:24:38 +03:00
WarDref
3e0f17c959
Update textures grass_bottom 2020-07-29 16:44:41 +03:00
WarDref
9372ad5ce2
changed texture grass
changed block texture grass_side and block texture grass_side
2020-07-29 16:25:06 +03:00
WarDref
5040101edd
Update block texture grass_side 2020-07-29 15:57:34 +03:00
9d36b86d10 Fixed Shape.fragment.glsl 2020-07-29 15:12:34 +03:00
e96a30c275 Initial commit 2020-07-29 12:30:34 +03:00