mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Use new @include preprocessor added to CyberarmEngin::Shader
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user