コード例 #1
0
 public void Initialization(PloobsEngine.Engine.GraphicInfo ginfo, PloobsEngine.Engine.GraphicFactory factory, PloobsEngine.SceneControl.IObject obj)
 {
     RenderTargetCube = factory.CreateRenderTargetCube(512,SurfaceFormat.Color,false,DepthFormat.Depth24Stencil8,0,RenderTargetUsage.PreserveContents);
     ForwardEnvironmentShader = new ForwardEnvironmentShader(RenderTargetCube,1,true);
     ForwardEnvironmentShader.Initialize(ginfo, factory, obj);
     
 }
コード例 #2
0
 public void Initialization(PloobsEngine.Engine.GraphicInfo ginfo, PloobsEngine.Engine.GraphicFactory factory, PloobsEngine.SceneControl.IObject obj)
 {
     RenderTargetCube = factory.CreateRenderTargetCube(128, SurfaceFormat.Color, false, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.DiscardContents);
     ForwardEnvironmentShader = new ForwardEnvironmentShader(RenderTargetCube, 0.5f, false);
     ForwardEnvironmentShader.Initialize(ginfo, factory, obj);
     //ForwardEnvironmentShader.EnvironmentMapEffect.EnableDefaultLighting();
 }