rn
This commit is contained in:
1 parent
fdabf2dd0d
commit
47e76c6224
1 file changed
+2
-2
@@ -140,7 +140,7 @@ static void sr_build_ground(void)
|
||||
|
||||
// Uniforms that never change between frames are uploaded once at startup.
|
||||
// SetShaderValue() is a bare glUniform*(), so the program must be bound.
|
||||
static void sr_init_main_uniforms(void)
|
||||
static void sr_config_shaders(void)
|
||||
{
|
||||
sr_light_pos = (Vector3){ 0.0f, 4.2f, 0.0f };
|
||||
|
||||
@@ -193,7 +193,7 @@ void sr_init(int width, int height, const char *main_vs, const char *main_fs,
|
||||
rlglInit(sr_width, sr_height);
|
||||
|
||||
sr_load_shaders(main_vs, main_fs, shadow_vs, shadow_fs);
|
||||
sr_init_main_uniforms();
|
||||
sr_config_shaders();
|
||||
sr_build_ground();
|
||||
|
||||
sr_ready = 1;
|
||||
|
||||
Reference in new issue
Block a user