-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhair_shader_shadowmap.rs
60 lines (45 loc) · 1.78 KB
/
hair_shader_shadowmap.rs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#define SHADOWMAP_PASS
//WARNING : This is a generated file
//WARNING : Do not change this file.
#define DecalDiffuseMap texture7
#define DecalNormalMap texture8
#define DecalSpecularMap texture9
#define Vertex_shader_output_type VS_OUTPUT_SIMPLE_HAIR
#define Pixel_shader_input_type VS_OUTPUT_SIMPLE_HAIR
#define my_material_id MATERIAL_ID_STANDART
#define Per_pixel_modifiable_variables pbr_shading_values
#define Per_pixel_auxiliary_variables standart_auxiliary_values
#include "../shader_configuration.h"
#include "definitions.rsh"
#include "modular_struct_definitions.rsh"
#include "shared_functions.rsh"
#include "motion_vector.rsh"
#include "generated_definitions.rsh"
#include "standart.rsh"
#include "pbr_shading_functions.rsh"
#include "hair_functions_simple.rsh"
#if VERTEX_SHADER
Vertex_shader_output_type main_vs(RGL_VS_INPUT In)
{
INITIALIZE_OUTPUT(Vertex_shader_output_type, Out);
Per_vertex_modifiable_variables pv_modifiable = (Per_vertex_modifiable_variables)0;
calculate_object_space_values_hair(In , pv_modifiable, Out );
calculate_world_space_values_hair(In , pv_modifiable, Out );
calculate_render_related_values_hair(In , pv_modifiable, Out );
#ifdef SYSTEM_SHOW_VERTEX_COLORS
vs_output_vertex_color(Out, In);
#endif
return Out;
}
#endif
#if PIXEL_SHADER
void main_ps(Pixel_shader_input_type In)
{
Per_pixel_static_variables pp_static = (Per_pixel_static_variables)0;
Per_pixel_modifiable_variables pp_modifiable = (Per_pixel_modifiable_variables)0;
Per_pixel_auxiliary_variables pp_aux = (Per_pixel_auxiliary_variables)0;
calculate_per_pixel_static_variables(In, pp_static);
calculate_alpha_hair(In , pp_static , pp_modifiable, pp_aux);
apply_alpha_test(In, pp_modifiable.early_alpha_value);
}
#endif