예제 #1
0
 // Load resources
 public void ReloadResource()
 {
     // Initialize effects
     display2dshader = new Display2DShader(this);
     things2dshader  = new Things2DShader(this);
     world3dshader   = new World3DShader(this);
 }
예제 #2
0
        // Load resources
        public void ReloadResource()
        {
            Capabilities caps;

            // Check if we can use shaders
            caps            = General.Map.Graphics.Device.Capabilities;
            useshaders      = (caps.PixelShaderVersion.Major >= 2);
            shadertechnique = "SM20";

            // Initialize effects
            display2dshader = new Display2DShader(this);
            things2dshader  = new Things2DShader(this);
            world3dshader   = new World3DShader(this);
        }