3D extension library for Raylib. Adding loads of additional features and capabilities to raylib, including multiple render pipelines, and lighting features, as well as effectively wrapping the functions of raylib into a namespace ( a prefix R3D_* )
#3d #gamedev #raylib #library #rendering #game-engine #game-dev #2d #framework #c #glsl #opengl
|
|
vor 1 Monat | |
|---|---|---|
| .github | vor 1 Monat | |
| assets | vor 5 Monaten | |
| cmake | vor 4 Monaten | |
| examples | vor 1 Monat | |
| external | vor 1 Monat | |
| include | vor 1 Monat | |
| scripts | vor 3 Monaten | |
| shaders | vor 1 Monat | |
| src | vor 1 Monat | |
| .gitattributes | vor 1 Jahr | |
| .gitignore | vor 10 Monaten | |
| .gitmodules | vor 7 Monaten | |
| BINDING.md | vor 1 Monat | |
| CMakeLists.txt | vor 1 Monat | |
| CMakePresets.json | vor 7 Monaten | |
| Doxyfile.in | vor 6 Monaten | |
| LICENSE | vor 1 Jahr | |
| README.md | vor 1 Monat | |
| ROADMAP.md | vor 1 Monat | |
| logo.png | vor 1 Jahr |
R3D is a modern 3D rendering library for raylib that provides advanced lighting, shadows, materials, and post-processing effects without the complexity of building a full engine from scratch.
[!WARNING] It is recommended to use the pre-release tags. While you can use the master branch, unexpected API breaking changes may occur until the first official release is published.
git clone --recurse-submodules https://github.com/Bigfoot71/r3d
cd r3d
mkdir build && cd build
cmake ..
cmake --build .
Requirements: raylib 5.5+, Assimp, Python 3.6+, OpenGL 3.3+
#include <r3d/r3d.h>
#include <raymath.h>
int main(void)
{
InitWindow(800, 600, "R3D Example");
SetTargetFPS(60);
R3D_Init(800, 600, 0);
// Create scene objects
R3D_Mesh mesh = R3D_GenMeshSphere(1.0f, 16, 32);
R3D_Material material = R3D_GetDefaultMaterial();
// Setup lighting
R3D_Light light = R3D_CreateLight(R3D_LIGHT_DIR);
R3D_SetLightDirection(light, (Vector3){-1, -1, -1});
R3D_SetLightActive(light, true);
// Camera setup
Camera3D camera = {
.position = {3, 3, 3},
.target = {0, 0, 0},
.up = {0, 1, 0},
.fovy = 60.0f,
.projection = CAMERA_PERSPECTIVE
};
// Main loop
while (!WindowShouldClose()) {
UpdateCamera(&camera, CAMERA_ORBITAL);
BeginDrawing();
R3D_Begin(camera);
R3D_DrawMesh(&mesh, &material, MatrixIdentity());
R3D_End();
EndDrawing();
}
R3D_UnloadMesh(&mesh);
R3D_Close();
CloseWindow();
return 0;
}
Licensed under the Zlib License - see LICENSE for details.