Better lighting

This commit is contained in:
Halbear 2026-06-20 02:13:47 +01:00
parent 8d219d2a35
commit eb01ec4877
26 changed files with 73 additions and 38 deletions

View file

@ -5,7 +5,7 @@
// also Vulkan Book https://github.com/lwjglgamedev/vulkanbook/blob/master/bookcontents/chapter-15/chapter-15.md
const int MAX_LIGHTS = 10;
const int MAX_LIGHTS = 1000;
const float PI = 3.14159265359;
struct Light {

View file

@ -2,7 +2,7 @@
layout(constant_id = 0) const int USE_AA = 0;
const float GAMMA_CONST = 0.4545;
const float GAMMA_CONST = 0.8545;
const float SPAN_MAX = 8.0;
const float REDUCE_MIN = 1.0/128.0;
const float REDUCE_MUL = 1.0/32.0;

View file

@ -2,7 +2,7 @@
layout(constant_id = 0) const int USE_AA = 0;
const float GAMMA_CONST = 0.4545;
const float GAMMA_CONST = 0.8545;
const float SPAN_MAX = 8.0;
const float REDUCE_MIN = 1.0/128.0;
const float REDUCE_MUL = 1.0/32.0;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 64;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 128;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 64;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 128;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 64;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;

View file

@ -1,6 +1,6 @@
#version 450
const int MAX_TEXTURES = 128;
const int MAX_TEXTURES = 512;
layout(location = 0) in vec4 inPos;
layout(location = 1) in vec3 inNormal;