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

Bigfoot71 1ab416d1fb finalizes the roadmap for 0.6 2 месяцев назад
.github 976c7a3bec Update cmake-multi-platform.yml 6 месяцев назад
assets ba802f6d61 better soft shadow debanding 5 месяцев назад
cmake 54f0669667 update shader processing 4 месяцев назад
examples d2c2fde908 removes `R3D_Sprite` 2 месяцев назад
external 7ee18a3d13 adding uthahs as dependency 2 месяцев назад
include 55de078f86 remove stencil buffer usage 2 месяцев назад
scripts 36538c7c7f update glsl processor 3 месяцев назад
shaders fc37a3aaf2 edge aware ssao blur 2 месяцев назад
src ddffbdeef3 cleanup details/r3d_primitives 2 месяцев назад
.gitattributes 047917dbb1 Ajouter .gitattributes et .gitignore 1 год назад
.gitignore 3f737a4302 update gitignore 10 месяцев назад
.gitmodules 119c002535 re-add assimp submodule 7 месяцев назад
BINDING.md b8cefaeca7 Adding binding list 5 месяцев назад
CMakeLists.txt c32e3a3438 refactor shader directories and naming 2 месяцев назад
CMakePresets.json 5ba5af3f58 update CMakePresets.json 7 месяцев назад
Doxyfile.in 9133a09b86 doxygen generation 6 месяцев назад
LICENSE 14d7e63fe7 add license 1 год назад
README.md f48b5614cd Update README.md 5 месяцев назад
ROADMAP.md 1ab416d1fb finalizes the roadmap for 0.6 2 месяцев назад
logo.png 428f05940e readme 1 год назад

README.md

R3D - 3D Rendering Library for raylib


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 (mostly minor) API breaking changes may occur until the first official release is published.


Key Features

  • Hybrid Renderer: Automatic (or manual) deferred/forward rendering
  • Advanced Materials: Complete PBR material system (Burley/SchlickGGX)
  • Dynamic Lighting: Directional, spot, and omni lights with soft shadows
  • Post-Processing: SSAO, SSR, DoF, bloom, fog, tonemapping, and more
  • Model Loading: Assimp integration with animations and mesh generation
  • Performance: Built-in frustum culling, instanced rendering, and more

Installation

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+

Quick Start

#include <r3d.h>

int main(void)
{
    InitWindow(800, 600, "R3D Example");
    R3D_Init(800, 600, 0);

    // Create scene objects
    R3D_Mesh mesh = R3D_GenMeshSphere(1.0f, 16, 32, true);
    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()) {
        BeginDrawing();
        R3D_Begin(camera);
        R3D_DrawMesh(&mesh, &material, MatrixIdentity());
        R3D_End();
        EndDrawing();
    }

    R3D_UnloadMesh(&mesh);
    R3D_Close();
    CloseWindow();
    return 0;
}

License

Licensed under the Zlib License - see LICENSE for details.

Screenshots