Open AdrienBousquieEPFL opened 1 week ago
The current issue description and context are outdated, as significant changes have been made to the codebase since this issue was initially defined. The original assumptions and proposed solutions may no longer align with the current state of the project.
This issue needs to be re-discussed to ensure alignment with the updated codebase and project requirements.
The current shader code implementation requires improvement. The shader code is currently embedded directly within the application codebase, leading to maintenance challenges and unnecessary duplication.
.glsl
files.ShaderProgram.kt
and ShaderUtils.kt
files..glsl
files.[x] Create .glsl
Files
[x] Move Shader Code
.glsl
files..glsl
file is properly named and formatted.[x] Update Code to Load .glsl
Files
ShaderProgram.kt
and ShaderUtils.kt
to load shader code dynamically from the .glsl
files.[x] Eliminate Duplicate Methods
ShaderProgram.kt
and ShaderUtils.kt
.[x] Test Shader Functionality
Description
IndexBuffer
VertexBuffer
ColorBuffer
(introduced in #159).
ShaderProgram
from #159ShaderUtils
from #188.Objective:
This is a code refactoring task aimed at improving code readability and maintainability for better team understanding and consistency.
Expected Outcome: