File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -200,5 +200,11 @@ void Shader::ApplyDefaultUniforms() {
200
200
m_Locations[RL_SHADER_LOC_MATRIX_MODEL] = GetUniformLocation (" rteModel" );
201
201
m_Locations[RL_SHADER_LOC_COLOR_DIFFUSE] = GetUniformLocation (" rteColor" );
202
202
m_Locations[RL_SHADER_LOC_MAP_DIFFUSE] = GetUniformLocation (" rteTexture" );
203
-
203
+ Enable ();
204
+ SetMatrix4f (m_Locations[RL_SHADER_LOC_MATRIX_MVP], glm::mat4 (1 .0f ));
205
+ SetMatrix4f (m_Locations[RL_SHADER_LOC_MATRIX_VIEW], glm::mat4 (1 .0f ));
206
+ SetMatrix4f (m_Locations[RL_SHADER_LOC_MATRIX_PROJECTION], glm::mat4 (1 .0f ));
207
+ SetMatrix4f (m_Locations[RL_SHADER_LOC_MATRIX_MODEL], glm::mat4 (1 .0f ));
208
+ SetVector4f (m_Locations[RL_SHADER_LOC_COLOR_DIFFUSE], glm::vec4 (1 .0f ));
209
+ SetInt (m_Locations[RL_SHADER_LOC_MAP_DIFFUSE], 0 );
204
210
}
You can’t perform that action at this time.
0 commit comments