prog
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "shaderunlit.h"
|
||||
#include "display/shader/shadermaterial.h"
|
||||
|
||||
shader_t SHADER_UNLIT = {
|
||||
.definition = &SHADER_UNLIT_DEFINITION
|
||||
};
|
||||
|
||||
errorret_t shaderUnlitSetMaterial(
|
||||
shader_t *shader,
|
||||
const shadermaterial_t *material
|
||||
) {
|
||||
errorChain(shaderSetTexture(
|
||||
shader,
|
||||
SHADER_UNLIT_TEXTURE,
|
||||
material->unlit.texture
|
||||
));
|
||||
|
||||
errorChain(shaderSetColor(
|
||||
shader,
|
||||
SHADER_UNLIT_COLOR,
|
||||
material->unlit.color
|
||||
));
|
||||
|
||||
errorOk();
|
||||
}
|
||||
Reference in New Issue
Block a user