Commit Graph

39 Commits

Author SHA1 Message Date
Ray dcf52c132f Remove trail spaces 2021-04-22 18:55:24 +02:00
raysan5 46650b5fb1 Reviewed skybox and pbr examples 2021-04-02 15:41:44 +02:00
raysan5 51f3129c5d Reviewed examples 2021-04-02 15:34:32 +02:00
raysan5 ccdf7ff335 REDESIGN: Move GenTexture*() functions to PBR example #721
Removed functions from rlgl module.
2021-04-02 14:29:33 +02:00
Jeffery Myers e48b9a6da1 [Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples.

* cleanups from review

Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-23 07:51:52 +01:00
Ray 07d82a91c5 WARNING: BREAKING: RENAMED: camera.type to camera.projection 2021-03-19 13:56:46 +01:00
Ray 01e28263be WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency
Some enums values have been renamed to be more consistent and also provide a more detailed description:
 - ShaderLocationIndex:    LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION
 - ShaderUniformDataType:  UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2
 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO
 - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-14 11:05:51 +01:00
Ray 478f4de7ae Update models_material_pbr.c #1571 2021-02-21 12:31:50 +01:00
Artur Mustafin 2f966531a7 added missing constants (#1493)
Co-authored-by: funcelot <artur.mustafin@gmail.com>
2020-12-30 21:05:55 +01:00
raysan5 bd512764ff REVIEW: example: models_cubicmap_pbr #1384
It does not work properly yet but it compiles correctly
2020-09-23 14:19:10 +02:00
raysan5 6da3c1e7c3 Reverted previous change 2020-09-16 16:37:31 +02:00
raysan5 6bab884d1d Added note on examples not supporting GLSL100 2020-03-24 12:39:05 +01:00
Ray bdcb16e7bb Review PR and comments 2019-09-22 21:47:19 +02:00
chriscamacho bce2dd1231 fixed leak with PBR example (#971) 2019-09-19 17:11:37 +02:00
Ray c6d2502bdb Review example crashing
Note this example is not working properly, it still requires some review.
2019-09-12 16:27:58 +02:00
raysan5 c661cad692 Review all RL_CALLOC() calls
All data should be properly initialized by now
2019-08-27 10:56:49 +02:00
raysan5 37a6f12037 Unload model shaders and textures
They are not automatically unloaded when unloading the model!
2019-08-26 21:19:04 +02:00
Ray b525039e0a Review ALL examples 2019-05-20 16:36:42 +02:00
Ray 6332bc0398 Corrected issue with shader loading
When using FormatText() several times in same function, returned string is static and so, the same is returned, resulting in failures on shader loading.
2019-05-18 01:24:00 +02:00
Ray 245cf2400e Review shader examples 2019-05-17 20:03:04 +02:00
Ray c23ceec338 Added missing include -_- 2019-04-05 17:29:30 +02:00
Ray 9282b8ba83 ADDED: SetShaderValueTexture()
Some tweaks
2019-04-05 17:08:46 +02:00
Ray c600dd0766 Review PBR shaders
Issue was related to vertex tangent attibutes not uploaded to GPU, a quick solution was implemented for new vertex attributes loading for already existing meshes... I don't like it specially but it will work for now.
2019-04-05 16:43:09 +02:00
Ray be6d237b9e Review models examples 2019-03-29 20:22:50 +01:00
Ray 55f8dbc755 WARNING: Redesigned SetShaderValue() 2019-01-10 11:25:26 +01:00
raysan5 5c614f6975 Some code tweaks 2019-01-05 19:24:42 +01:00
Ahmad Fatoum 7c36237048 Example: Don't load texture removed from source tree
Fixes: c3b948b1 ("Replaced skybox HDR image")
2018-07-03 23:14:24 +02:00
Ray 04db494db0 Renamed shader variable 2018-05-06 00:44:59 +02:00
Ray San 6045062a05 Renamed some functions
- Renamed Begin3dMode() --> BeginMode3D()
- Renamed Begin2dMode() --> BeginMode2D()
- Renamed End3dMode() --> EndMode3D()
- Renamed End2dMode() --> EndMode2D()
2018-05-04 16:54:05 +02:00
raysan5 23e335d933 Implemented MeshTangents()
- Added Vector3OrthoNormalize() to raymath.h - not sure if it is correct
- Implemented MeshBinormals() - Mesh struct has not a place for them...
- Updated model_material_pbr example - tested but not working on my GPU
(old Intel HD), actually, it never worked on it...
2018-04-30 02:47:48 +02:00
Ray San 4cc12ef2b3 Review camera definition on examples 2018-04-11 10:13:00 +02:00
raysan5 d6c1159fce Corrected typo 2018-03-11 11:01:58 +01:00
Ray San 8ace02c2ff Added new examples to build...
...and reviewed some details
2017-10-17 13:30:41 +02:00
raysan5 c764b3d03e Some tweaks 2017-07-25 18:10:07 +02:00
raysan5 2679c4ae9b Review mesh loading and textures generation 2017-07-21 09:34:09 +02:00
raysan5 4c06725461 Removed useless functions
SetMaterialTexture() and UnsetMaterialTexture()... too shader
dependant...
2017-07-20 14:27:17 +02:00
raysan5 76c6f0b1e6 Working on PBR system
Moved PBR material loading to example, right decision?
2017-07-19 18:55:32 +02:00
raysan5 d368403a13 Working on PBR materials, renamed some data 2017-07-19 10:09:34 +02:00
Ray 6546474fa4 Manual integration of material-pbr into develop 2017-07-17 00:33:40 +02:00