mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-13 23:08:14 +00:00
WARNING: BREAKING: rlgl redesign -WIP-
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements: - [models] OpenGL 1.1 mesh rendering: DrawMesh() - [models] Mesh Instancing: DrawMeshInstanced() - [models] Stereo rendering: DrawMesh() - [models] GL_FLOAT, GL_UNSIGNED_INT exposed - [models] GenMeshCustom() - [rlgl] GenTexture*() functions removal?
This commit is contained in:
@@ -2082,13 +2082,13 @@ void UnloadShader(Shader shader)
|
||||
// Begin custom shader mode
|
||||
void BeginShaderMode(Shader shader)
|
||||
{
|
||||
rlSetShaderActive(shader);
|
||||
rlSetShader(shader);
|
||||
}
|
||||
|
||||
// End custom shader mode (returns to default shader)
|
||||
void EndShaderMode(void)
|
||||
{
|
||||
BeginShaderMode(rlGetShaderDefault());
|
||||
rlSetShader(rlGetShaderDefault());
|
||||
}
|
||||
|
||||
// Get shader uniform location
|
||||
@@ -2129,7 +2129,7 @@ void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat)
|
||||
void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture)
|
||||
{
|
||||
rlEnableShader(shader.id);
|
||||
rlSetUniformSampler(locIndex, texture);
|
||||
rlSetUniformSampler(locIndex, texture.id);
|
||||
//rlDisableShader();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user