mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 05:02:34 +00:00
Added support for rendering multiple lights, standardized shaders to use snake case for variables and camel case for functions, stubbed PBR material shader include.
This commit is contained in:
16
assets/shaders/include/material_struct.glsl
Normal file
16
assets/shaders/include/material_struct.glsl
Normal file
@@ -0,0 +1,16 @@
|
||||
struct Material {
|
||||
vec3 color;
|
||||
vec3 roughness;
|
||||
vec3 metalic;
|
||||
vec3 specular;
|
||||
|
||||
bool use_color_texture;
|
||||
bool use_roughness_texture;
|
||||
bool use_metalic_texture;
|
||||
bool use_specular_texture;
|
||||
|
||||
sampler2D color_tex;
|
||||
sampler2D roughness_tex;
|
||||
sampler2D metalic_tex;
|
||||
sampler2D specular_tex;
|
||||
};
|
||||
Reference in New Issue
Block a user