Welcome to mirror list, hosted at ThFree Co, Russian Federation.

workbench_data_lib.glsl « shaders « workbench « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d648ce7d7bb9e8e758d90abb1211735306447c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
struct LightData {
	vec4 light_direction_vs;
	vec4 specular_color;
};

struct WorldData {
	vec4 diffuse_light_x_pos;
	vec4 diffuse_light_x_neg;
	vec4 diffuse_light_y_pos;
	vec4 diffuse_light_y_neg;
	vec4 diffuse_light_z_pos;
	vec4 diffuse_light_z_neg;
	vec4 background_color_low;
	vec4 background_color_high;
	vec4 object_outline_color;
	vec4 light_direction_vs;
	LightData lights[3];
	int num_lights;
	int pad[3];
};

struct MaterialData {
	vec4 diffuse_color;
	vec4 specular_color;
	float roughness;
	int matcap_texture_index;
};