/// <summary> /// Creates a new AlphaTestEffect with default parameter settings. /// </summary> public UnlitEffect(GraphicsDevice device) : base(device, Resources.GetShaderByteCode("Unlit")) { _BaseColorMap = new EffectTexture2D.Scalar4(device, this.Parameters, "Primary", 1); _EmissiveMap = new EffectTexture2D.Scalar3(device, this.Parameters, "Emissive", 3); _OcclusionMap = new EffectTexture2D.Scalar1(device, this.Parameters, "Occlusion", 4); _Fog = new EffectBasicFog(device, this.Parameters); }
public PBRSpecularGlossinessEffect(GraphicsDevice device) : base(device, Resources.GetShaderByteCode("SpecularGlossinessEffect")) { _DiffuseMap = new EffectTexture2D.Scalar4(device, this.Parameters, "Primary", 1); _SpecularGlossinessMap = new EffectTexture2D.Scalar4(device, this.Parameters, "Secondary", 2); }
public PBRMetallicRoughnessEffect(GraphicsDevice device) : base(device, Resources.GetShaderByteCode("MetallicRoughnessEffect")) { _BaseColorMap = new EffectTexture2D.Scalar4(device, this.Parameters, "Primary", 1); _MetalRoughnessMap = new EffectTexture2D.Scalar2(device, this.Parameters, "Secondary", 2); }