Use new @include preprocessor added to CyberarmEngin::Shader

This commit is contained in:
2020-01-28 10:48:47 -06:00
parent e7b84bd123
commit c25df59819
7 changed files with 23 additions and 36 deletions

View File

@@ -1,20 +1,6 @@
# version 330 core
const int MAX_LIGHTS = 4;
struct Light {
float end;
float type;
vec3 position;
vec3 diffuse;
vec3 ambient;
vec3 specular;
vec3 direction;
float intensity;
};
@include "light_struct"
in vec3 outPosition;
in vec3 outColor;
@@ -93,4 +79,4 @@ void main() {
vec3 result = calculateLighting() * outColor;
gl_FragColor = vec4(result, 1.0);
}
}