Add u_invModelView uniform to shader and documentation (#3421)

This commit is contained in:
Luigi Malomo
2025-04-12 01:54:42 +02:00
committed by GitHub
parent 01dc8c59b4
commit c8f237a39b
12 changed files with 31 additions and 0 deletions

View File

@@ -3244,6 +3244,7 @@ namespace bgfx
/// - `u_model mat4[BGFX_CONFIG_MAX_BONES]` - array of model matrices.
/// - `u_modelView mat4` - concatenated model view matrix, only first
/// model matrix from array is used.
// - `u_invModelView mat4` - inverted model view matrix.
/// - `u_modelViewProj mat4` - concatenated model view projection matrix.
/// - `u_alphaRef float` - alpha reference value for alpha test.
///

View File

@@ -2167,6 +2167,7 @@ BGFX_C_API void bgfx_destroy_frame_buffer(bgfx_frame_buffer_handle_t _handle);
* - `u_modelView mat4` - concatenated model view matrix, only first
* model matrix from array is used.
* - `u_modelViewProj mat4` - concatenated model view projection matrix.
* - `u_invModelView mat4` - inverted concatenated model view matrix.
* - `u_alphaRef float` - alpha reference value for alpha test.
*
* @param[in] _name Uniform name in shader.