mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 14:23:12 +00:00
Update shaders_texture_drawing.c
This commit is contained in:
parent
2e376c6f5b
commit
dd0587e12a
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user