Now rendering live preview when dragging models into viewport

This commit is contained in:
Antoine Pilote
2024-08-11 00:45:02 -04:00
parent 91b3e5d4b0
commit 6da7cb9d3f
6 changed files with 124 additions and 16 deletions

View File

@@ -198,7 +198,7 @@ float ShadowCalculation(vec3 FragPos, vec3 normal)
const float NUM_SAMPLES = 4.f;
const float SAMPLES_START = (NUM_SAMPLES - 1.0f) / 2.0f;
const float NUM_SAMPLES_SQUARED = NUM_SAMPLES * NUM_SAMPLES;
vec2 texelSize = 1.0 / vec2(2048, 2048);
vec2 texelSize = 1.0 / vec2(4096, 4096);
float result = 0.0f;
for (float y = -SAMPLES_START; y <= SAMPLES_START; y += 1.0f)