sponza demo slower cycle
parent
53b63dff58
commit
1546a56a4a
|
@ -39,7 +39,7 @@ int main() {
|
||||||
// initialize SH coefficients from rayleigh skybox
|
// initialize SH coefficients from rayleigh skybox
|
||||||
if (flag("--mie") && sky_update_until <= window_time()) {
|
if (flag("--mie") && sky_update_until <= window_time()) {
|
||||||
shader_bind(sky.program);
|
shader_bind(sky.program);
|
||||||
shader_vec3("uSunPos", vec3(0, (cosf((float)window_time())*0.3)+0.2, -1));
|
shader_vec3("uSunPos", vec3(0, (cosf((float)window_time()*0.25)*0.3)+0.2, -1));
|
||||||
skybox_mie_calc_sh(&sky);
|
skybox_mie_calc_sh(&sky);
|
||||||
sky_update_until = window_time() + 0.02;
|
sky_update_until = window_time() + 0.02;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue