MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

Material system #97

Closed RohacekD closed 3 years ago

RohacekD commented 3 years ago

Create simple instanced materials system

RohacekD commented 3 years ago

Summary of steps I need to do in order to finish this: 7 1) Make shader struct defining the material

2) Material buffer in code - probably fixed number of materials in an array, checking for invalidation of material, etc 3) Material manager, each material should be registered here, materials are refCounted so upload should consist from 1. filtering of the unused materials 2. checking for invalidated materials 3. upload of invalidated materials 4) Each render call knows its material index inside an array of used materials

RohacekD commented 3 years ago

1) Done

RohacekD commented 3 years ago
  1. Done
  2. Done
  3. Done

Still missing: Textures

RohacekD commented 3 years ago

image

RohacekD commented 3 years ago

![Uploading image.png…]() Textures working