/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "shader.h" #define SHADER_UNLIT_PROJECTION "u_Proj" #define SHADER_UNLIT_VIEW "u_View" #define SHADER_UNLIT_MODEL "u_Model" #define SHADER_UNLIT_TEXTURE "u_Texture" #define SHADER_UNLIT_COLOR "u_Color" typedef struct { color_t color; texture_t *texture; } shaderunlitmaterial_t; extern shaderdefinition_t SHADER_UNLIT_DEFINITION; extern shader_t SHADER_UNLIT; /** * Uploads the unlit material properties to the shader. * * @param shader The shader to upload to. * @param material The material data to upload. * @return Error if failure, otherwise errorOk. */ errorret_t shaderUnlitSetMaterial( shader_t *shader, const shadermaterial_t *material );