Have the original lighting system back and a little lightbulb model to show where the light is.
This commit is contained in:
parent
3231f747a9
commit
a29494325b
143 changed files with 16360 additions and 9 deletions
|
|
@ -121,15 +121,7 @@ void update(GLFWwindow* window, Scene& scene) {
|
|||
|
||||
void render(GLFWwindow* window, Scene& scene, Text& text) {
|
||||
scene.render(window);
|
||||
float scale = 0.5f;
|
||||
|
||||
float X_height = text.characters['X'].size.y * scale + 0.5f;
|
||||
float y = 0.0f;
|
||||
|
||||
for(int i = 0; i < 100; i++) {
|
||||
y += X_height;
|
||||
text.render(std::format("y={}", y), 25.0f, y, scale, glm::vec3(1.0, 0.0f, 0.0f));
|
||||
}
|
||||
text.render("Some Text Here", 25.0f, 25.0f, 1.0f, glm::vec3(1.0, 0.0f, 0.0f));
|
||||
|
||||
glfwSwapBuffers(window);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue