예제 #1
0
 public void Start()
 {
     Tracer.Print("Application", "Starting Phantom.");
     OptixDotNet.Utils.Utils.DetectGPUCompatibility();
     Session = OptixSession.Create();
     TextureManager = new TextureSamplerManager(Session);
     SceneProvider = new RdfSceneProvider();
     CreateEngine();
 }
예제 #2
0
 public OptixSceneBuilder(int rayTypeCount)
 {
     textureDirs = GlobalConfiguration.Instance.TextureDirectories;
     Session = ComponentPipeline.Instance.Session;
     this.RayTypeCount = rayTypeCount;
 }
예제 #3
0
 public TextureSamplerManager(OptixSession session)
 {
     texCache = TextureCache.Instance;
     this.session = session;
 }