From 2ca743d8df36f8cf863caa9c40f965398f72ef2e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 24 May 2020 18:49:46 -0500 Subject: add blinn-phong lighting demo --- include/shader.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/shader.h b/include/shader.h index 40561d4..771ea4a 100644 --- a/include/shader.h +++ b/include/shader.h @@ -63,6 +63,17 @@ void honey_shader_set_vec3(honey_shader shader, char* vector_name, vec3 value); + +/** @brief Set a mat3 uniform. + * + * @param[in] shader The shader to which the uniform belongs + * @param[in] matrix_name The name of the matrix uniform + * @param[in] value The value of the matrix uniform + */ +void honey_shader_set_mat3(honey_shader shader, + char* matrix_name, + mat3 value); + /** @brief Set a mat4 uniform. * * @param[in] shader The shader to which the uniform belongs -- cgit v1.2.1