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: f67d2ff674549a20ae5a008ef7633b87e273f83a (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 matcap_orientation;
	int pad[2];
};

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