0028126: Visualization, Path tracing - Provide ability to use two-sided scattering...
[occt.git] / tests / v3d / raytrace / sample_cube_twosided
diff --git a/tests/v3d/raytrace/sample_cube_twosided b/tests/v3d/raytrace/sample_cube_twosided
new file mode 100644 (file)
index 0000000..ac872ad
--- /dev/null
@@ -0,0 +1,19 @@
+puts "============"
+puts "Visualization - Path Tracing, Cube sample"
+puts "============"
+puts ""
+
+source $env(CSF_OCCTSamplesPath)/tcl/pathtrace_cube.tcl
+
+vaxo
+vfit
+vfps 100
+
+# Dump image produced with one-sided BSDFs
+vdump $imagedir/${casename}_onesided.png
+
+vrenderparams -twoside
+vfps 100
+
+# Dump image produced with two-sided BSDFs
+vdump $imagedir/${casename}_twosided.png