From f6cf62697159bdd597d05ee3640b267baca600fe Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 20 Sep 2013 10:57:32 -0300 Subject: [PATCH] Raytracing: Added RadiosityNormal povray template --- src/Mod/Raytracing/App/CMakeLists.txt | 1 + .../Raytracing/Templates/RadiosityNormal.pov | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/Mod/Raytracing/Templates/RadiosityNormal.pov diff --git a/src/Mod/Raytracing/App/CMakeLists.txt b/src/Mod/Raytracing/App/CMakeLists.txt index 7fcffceebc..59249a840f 100644 --- a/src/Mod/Raytracing/App/CMakeLists.txt +++ b/src/Mod/Raytracing/App/CMakeLists.txt @@ -59,6 +59,7 @@ SET(Raytracing_Scripts SET(Raytracing_Templates Templates/ProjectStd.pov + Templates/RadiosityNormal.pov ) add_library(Raytracing SHARED ${Raytracing_SRCS}) diff --git a/src/Mod/Raytracing/Templates/RadiosityNormal.pov b/src/Mod/Raytracing/Templates/RadiosityNormal.pov new file mode 100644 index 0000000000..bd7c1f9d0b --- /dev/null +++ b/src/Mod/Raytracing/Templates/RadiosityNormal.pov @@ -0,0 +1,41 @@ + // Persistence of Vision Ray Tracer Scene Description File + // for FreeCAD (http://www.freecadweb.org) + + #version 3.6; + + #include "colors.inc" + #include "metals.inc" + #include "rad_def.inc" + + global_settings { + radiosity { + Rad_Settings(Radiosity_Normal,off,off) + } + } + + #default {finish{ambient 0}} + + sky_sphere { + pigment { + gradient y + color_map { + [0.0 color LightGray] + [0.3 color White] + [0.7 color LightGray] + } + } + } + + // Standard finish + #declare StdFinish = finish { crand 0.01 diffuse 0.8 }; + + //RaytracingContent + + //default light + light_source { + cam_location + color White + area_light <100, 0, 0>, <0, 0, 100>, 10, 10 + adaptive 1 + jitter + }