Extend Gawain to use Blender's built-in shaders

Was already done for immediate mode, but rearranged code to make a clean separation. Cleaned up #includes for code that uses this feature.

Added same for batched rendering.
This commit is contained in:
2016-09-15 18:41:28 +02:00
parent 39f7a81176
commit 5eddb80513
12 changed files with 122 additions and 30 deletions

View File

@@ -31,3 +31,8 @@
#pragma once
#include "gawain/immediate.h"
#include "GPU_shader.h"
/* Extend immBindProgram to use Blenders library of built-in shader programs.
* Use immUnbindProgram() when done. */
void immBindBuiltinProgram(GPUBuiltinShader);