mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-21 01:01:50 +00:00
Update shaders_texture_drawing.c
This commit is contained in:
@@ -4,8 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Example complexity rating: [★★☆☆] 2/4
|
* Example complexity rating: [★★☆☆] 2/4
|
||||||
*
|
*
|
||||||
* NOTE: This example illustrates how to draw into a blank texture using a shader
|
|
||||||
*
|
|
||||||
* Example originally created with raylib 2.0, last time updated with raylib 3.7
|
* Example originally created with raylib 2.0, last time updated with raylib 3.7
|
||||||
*
|
*
|
||||||
* Example contributed by Michał Ciesielski (@ciessielski) and reviewed by Ramon Santamaria (@raysan5)
|
* Example contributed by Michał Ciesielski (@ciessielski) and reviewed by Ramon Santamaria (@raysan5)
|
||||||
@@ -67,7 +65,7 @@ int main(void)
|
|||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
BeginShaderMode(shader); // Enable our custom shader for next shapes/textures drawings
|
BeginShaderMode(shader); // Enable our custom shader for next shapes/textures drawings
|
||||||
DrawTexture(texture, 0, 0, WHITE); // Drawing BLANK texture, all magic happens on shader
|
DrawTexture(texture, 0, 0, WHITE); // Drawing BLANK texture, all rendering magic happens on shader
|
||||||
EndShaderMode(); // Disable our custom shader, return to default shader
|
EndShaderMode(); // Disable our custom shader, return to default shader
|
||||||
|
|
||||||
DrawText("BACKGROUND is PAINTED and ANIMATED on SHADER!", 10, 10, 20, MAROON);
|
DrawText("BACKGROUND is PAINTED and ANIMATED on SHADER!", 10, 10, 20, MAROON);
|
||||||
|
Reference in New Issue
Block a user