Гамма-коррекция
This commit is contained in:
@@ -425,6 +425,9 @@ int main(void)
|
||||
const char* skybox_shader_names[] = {"skybox"};
|
||||
skyboxShader.bindTextures(skybox_shader_names, sizeof(skybox_shader_names)/sizeof(const char*));
|
||||
|
||||
// Значение гамма-коррекции
|
||||
float inv_gamma = 1/2.2;
|
||||
UBO gamma(&inv_gamma, sizeof(inv_gamma), 4);
|
||||
|
||||
// Пока не произойдет событие запроса закрытия окна
|
||||
while(!glfwWindowShouldClose(window))
|
||||
|
||||
Reference in New Issue
Block a user