// Load resources public void ReloadResource() { // Initialize effects display2dshader = new Display2DShader(this); things2dshader = new Things2DShader(this); world3dshader = new World3DShader(this); }
// 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); }