mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
support cabview rain effect
This commit is contained in:
@@ -72,6 +72,10 @@ void gl::glsl_common_setup()
|
||||
mat4 lightview[MAX_CASCADES];
|
||||
vec3 cascade_end;
|
||||
float time;
|
||||
vec4 rain_params;
|
||||
vec4 wiper_pos;
|
||||
vec4 wiper_timer_out;
|
||||
vec4 wiper_timer_return;
|
||||
};
|
||||
|
||||
)STRING";
|
||||
|
||||
6
gl/ubo.h
6
gl/ubo.h
@@ -45,9 +45,13 @@ namespace gl
|
||||
glm::mat4 lightview[MAX_CASCADES];
|
||||
glm::vec3 cascade_end;
|
||||
float time;
|
||||
glm::vec4 rain_params;
|
||||
glm::vec4 wiper_pos;
|
||||
glm::vec4 wiper_timer_out;
|
||||
glm::vec4 wiper_timer_return;
|
||||
};
|
||||
|
||||
static_assert(sizeof(scene_ubs) == 336, "bad size of ubs");
|
||||
static_assert(sizeof(scene_ubs) == 400, "bad size of ubs");
|
||||
|
||||
const size_t MAX_PARAMS = 3;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user