-
Notifications
You must be signed in to change notification settings - Fork 419
Expand file tree
/
Copy pathscene_template.xml
More file actions
38 lines (34 loc) · 1.49 KB
/
scene_template.xml
File metadata and controls
38 lines (34 loc) · 1.49 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
<!-- Template for a lit scene in testrender -->
<World>
<!-- The camera FOV is compensated for [-0.5, 0.5] screen coordinates,
and matches a 45 degree FOV with [-1, 1] screen coordinates.
FOV = atan(2 * tan(45 * PI/360)) * 360/PI = 79.27854 -->
<Camera eye="0, 0, 3" dir="0, 0, -1" fov="79.27854" />
<!-- Background environment map. -->
<ShaderGroup>
%environment_shader_parameter_overrides%
shader envmap layer1;
</ShaderGroup>
<Background resolution="2048" />
<!-- Background quad with raytype test. -->
<ShaderGroup>
color Cin %background_color%;
%environment_shader_parameter_overrides%
shader raytype_background layer1;
</ShaderGroup>
<Quad corner="-340, -340, -800" edge_x="680, 0, 0" edge_y="0, 680, 0" />
<!-- Shader graph for routing to output layer:
input_shader_parameter_overrides : are parameter overrides for the input shader
%input_shader_type% : type of an input shader to feed into the output shader.
%input_shader_output% : name of output argument on input shader.
%output_shader_type%: type of the output shader used to render with
%output_shader_input% : name of input argument on output shader.
-->
<ShaderGroup>
%input_shader_parameter_overrides%;
shader %input_shader_type% inputShader;
shader %output_shader_type% outputShader;
connect inputShader.%input_shader_output% outputShader.%output_shader_input%;
</ShaderGroup>
<Sphere center="0, 0, 0" radius="1" />
</World>