-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathshadows.jsn
More file actions
59 lines (54 loc) · 1.73 KB
/
shadows.jsn
File metadata and controls
59 lines (54 loc) · 1.73 KB
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
import common.jsn
{
views:
{
single_shadow_view:
{
target : [shadow_map],
clear_depth : 1.0,
colour_write_mask : 0xf,
blend_state : disabled,
viewport : [0.0, 0.0, 1.0, 1.0],
raster_state : front_face_cull,
depth_stencil_state: default,
pmfx_shader : forward_render,
technique : zonly,
scene : main_scene,
camera : shadow_camera,
scene_views : ["ecs_render_scene"],
render_flags : ["forward_lit"]
},
debug_view:
{
target : [main_colour, main_depth],
colour_write_mask : 0xf,
blend_state : disabled,
viewport : [0.0, 0.0, 1.0, 1.0],
raster_state : wireframe,
depth_stencil_state: default,
pmfx_shader : forward_render,
technique : constant_colour,
scene : main_scene,
camera : model_viewer_camera,
scene_views : ["shadows_debug"]
},
shadow_demo_main(main_view):
{
clear_colour : [0.0, 0.0, 0.0, 1.0],
clear_depth : 1.0,
sampler_bindings:
[
{ texture: shadow_map, unit: 15, state: wrap_linear, shader: ps },
],
}
},
view_sets:
{
shadow_map: [
single_shadow_view,
shadow_demo_main,
debug_view
]
},
view_set: shadow_map
}