mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	EXAMPLES: Format tweaks
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| /******************************************************************************************* | ||||
| * | ||||
| *   raylib [shaders] example - Depth buffer writing | ||||
| *   raylib [shaders] example - depth buffer writing | ||||
| * | ||||
| *   Example complexity rating: [★★☆☆] 2/4 | ||||
| * | ||||
| @@ -60,7 +60,7 @@ int main(void) | ||||
|         .fovy = 45.0f,                                // Camera field-of-view Y | ||||
|         .projection = CAMERA_PERSPECTIVE              // Camera projection type | ||||
|     }; | ||||
|      | ||||
|  | ||||
|     SetTargetFPS(60);                   // Set our game to run at 60 frames-per-second | ||||
|     //-------------------------------------------------------------------------------------- | ||||
|  | ||||
| @@ -71,13 +71,13 @@ int main(void) | ||||
|         //---------------------------------------------------------------------------------- | ||||
|         UpdateCamera(&camera, CAMERA_ORBITAL); | ||||
|         //---------------------------------------------------------------------------------- | ||||
|          | ||||
|  | ||||
|         // Draw | ||||
|         //---------------------------------------------------------------------------------- | ||||
|         // Draw into our custom render texture (framebuffer) | ||||
|         BeginTextureMode(target); | ||||
|             ClearBackground(WHITE); | ||||
|              | ||||
|  | ||||
|             BeginMode3D(camera); | ||||
|                 BeginShaderMode(shader); | ||||
|                     DrawCubeWiresV((Vector3){ 0.0f, 0.5f, 1.0f }, (Vector3){ 1.0f, 1.0f, 1.0f }, RED); | ||||
| @@ -89,7 +89,7 @@ int main(void) | ||||
|             EndMode3D(); | ||||
|         EndTextureMode(); | ||||
|  | ||||
|         // Draw into screen our custom render texture  | ||||
|         // Draw into screen our custom render texture | ||||
|         BeginDrawing(); | ||||
|             ClearBackground(RAYWHITE); | ||||
|             DrawTextureRec(target.texture, (Rectangle) { 0, 0, (float)screenWidth, (float)-screenHeight }, (Vector2) { 0, 0 }, WHITE); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray