summaryrefslogtreecommitdiffhomepage
path: root/src/rmodels.c
AgeCommit message (Collapse)Author
2024-07-09[Shapes] Remove duplicate color calls in DrawGrid (#4148)Jeffery Myers
* Update raylib_api.* by CI * No need to call the color 4 times in a row, it's batched --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-08Minor tweaksRay
2024-07-07Update rmodels.cRay
2024-07-07[rmodels] Consistent `DrawBillboardPro` with `DrawTexturePro` (#4132)bohonghuang
* [rmodels] Re-implement `DrawBillboardPro` * [rmodels] Add comments to `DrawBillboardPro` * [rmodels] Make `DrawBillboardPro` consistent with `DrawTexturePro` * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-30REVIEWED: `DrawSphereEx()`, added educational infoRay
2024-06-30[rmodels] `DrawSphereEx()` optimization (#4106)smalltimewizard
* Optimize DrawSphereEx() Precalculates sin/cos to eliminate unnecessary calls. * Formatting correction to previous commit * Bugfix to optimized DrawSphereEx() OBO error -- added 1 additional precalculated cos/sin value to each array to complete the 360-degree wraparound. Technically the value of these last elements will always be the same as the first element due to 360-degree wraparound, but this is the simplest solution. * Corrected missing free() * Formatting correction * New DrawSphereEx() algorithm
2024-06-30REVIEWED: Formatting, follow raylib coding conventionsRay
2024-06-30[rmodels] Return true if no need to interpolate to avoid log flooding (#4118)VitoTringolo
2024-06-28rmodels.c, `LoadImageFromCgltfImage()` : fix base64 padding support (#4112)SuperUserNameMan
* rmodels.c, LoadImageFromCgltfImage() : fix base64 padding support This should fix the issue related to `.gltf` embeded image in base64 format, by ignoring `=` padding and calculating the data size in bytes correctly. * follow guidelin convention * try to follow guideline convention as much as possible * clarify comments i hope it's clear ennough
2024-06-28Fix GLTF animations (#4107)VitoTringolo
Co-authored-by: Vito Tringolo <[email protected]>
2024-06-24[rmodels] Fix -Wstringop-truncation warning (#4096)Peter0x44
rmodels.c: In function ‘LoadBoneInfoGLTF.isra’: rmodels.c:4874:32: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 4874 | if (node.name != NULL) strncpy(bones[i].name, node.name, sizeof(bones[i].name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-23LoadIQM() set model.meshMaterial[] (#4092)SuperUserNameMan
2024-06-22[rmodels] Initial work to correctly handle the node hierarchy in a glTF file ↵Paul Melis
(#4037) * Initial work to correctly handle the node hierarchy in a glTF file. Static meshes seem to work fine in my tests. Haven't tried anything animated yet, but it's almost certainly broken. * Fix variable naming, some comment tweaks * Only count primitives made up of triangles in glTF meshes * Update processing of gltf mesh animation data, to match earlier changes to vertex/normal/tangent data
2024-06-16[rmodels] Read uninitialized values in GenMeshTangents() - fix bounding case ↵kai-z99
(#4066) * fix * assert
2024-06-11[SHAPES] Make functions that draw point arrays take them as const (#4051)Jeffery Myers
* Update raylib_api.* by CI * make functions that take a pointer to an array take them as const pointers * Update raylib_api.* by CI * fix comment alignment. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-11LoadBoneInfoGLTF add check for animation name being NULL (#4053)VitoTringolo
Co-authored-by: Vito Tringolo <[email protected]>
2024-06-09REVIEWED: Animation name being NULL #4037Ray
2024-06-04Fix #4024, cylinder drawing was incorrect due to imprecise angle (#4034)Paul Melis
* Fix #4024, cylinder drawing was incorrect due to imprecise angle stepping (mostly noticeable with semi-transparent cylinders) * Fix var name and spacing
2024-06-03LoadIQM: attempt to load texture from IQM at loadtime. (#4029)Jett
tries to load the texture with the base path of the original IQM file, relative paths should work.
2024-06-02[rmodels] Send full matModel to shader in DrawMesh (#4005) (#4022)David Holland
2024-06-02LoadModelAnimationsIQM: fix corrupted animation names (#4026)Jett
Correctly copies animation names from IQM animation to raylib animation.
2024-05-29[rmodels] Multiplication of colors in `DrawModelEx` which can be simplified ↵Le Juez Victor
(#4002) * simplifies color multiplication `DrawModelEx` * add explicit casts
2024-05-21fixed out of bounds error in GenMeshTangents (#3990)Salvador Galindo
2024-05-01Reviewed some warningsRay
2024-04-24FIX: Issue with texcoords loading for glTFRay
2024-04-23[rlgl] Implement vertex normals for RLGL immediate drawing mode (#3866)bohonghuang
* Fix several non-functional `target_compile_definitions` * Avoid hardcoding the default vertex attribute locations * Implement functional `rlNormal3f` * Add normal definitions for `DrawCube` * Update the basic lighting example to use `DrawCube` and `DrawPlane`
2024-04-21Review formattingRay
2024-04-20REVIEWED: `rlSetVertexAttribute()`, define last parameter as offset #3800Ray
2024-04-20REVIEWED: `LoadGLTF()`, support 2nd texture coordinates loadingRay
2024-04-20REVIEWED: `LoadGLTF()`, support additional vertex attributes data formats #3890Ray
2024-04-20REVIEWED: `LoadGLTF()`, JOINTS loading #3836Ray
Support all JOINT formats supported by glTF specs
2024-04-20REVIEWED: Remove final punctuation in code commentsRay
2024-04-20Code gardeningRay
- Review formatting - Improve readability for some functions result return - Minimize early returns - Align LoadFileData() to UnloadFileData()
2024-04-19Review code formatingRay
2024-04-17Replaced SQUAD quat interpolation with cubic hermite to align with gltf 2.0 ↵Benji
spec (#3920)
2024-04-15Added missing interpolation types for GLTF animation channels (#3919)Benji
2024-04-02Remove trailing spacesRay
2024-03-18Remove redundant rlDisableVertexAttribute for SHADER_LOC_VERTEX_COLOR (#3871)Kacper Zybała
2024-03-07Update rmodels.cRay
2024-03-07Implemented fix for #3859Ray
2024-02-29Review formattingRay
2024-02-29feat: vox_loader normals and new voxels shader (#3843)johann nadalutti
2024-02-26Added note #3822Ray
2024-02-26add 16-bit unsigned short vec4 format for gltf joint loading (#3821)Gary M
2024-02-19fixed loading GLTF animations with 1 frame (#3804)Nikita Blizniuk
2024-02-10Fix warnings in raylib (#3793)Jeffery Myers
2024-01-23Fix bug to retrieve material specular map in DrawMesh function, with ↵Victor Gallet
incorrect index (#3758)
2024-01-11Enable animation names for the m3d model format. (#3714)kolunmi
2024-01-02Update copyright to 2024Ray
2023-12-23Review formatingRay