/// <summary> /// Initializes a new instance of the <see cref="MaterialDisplacementMapFeature"/> class. /// </summary> /// <param name="displacementMap">The displacement map.</param> public MaterialDisplacementMapFeature(IComputeScalar displacementMap) { ScaleAndBias = true; DisplacementMap = displacementMap; Intensity = new ComputeFloat(1.0f); Stage = DisplacementMapStage.Vertex; }
/// <summary> /// Initializes a new instance of the <see cref="MaterialEmissiveMapFeature"/> class. /// </summary> /// <param name="emissiveMap">The emissive map.</param> /// <exception cref="System.ArgumentNullException">emissiveMap</exception> public MaterialEmissiveMapFeature(IComputeColor emissiveMap) { if (emissiveMap == null) throw new ArgumentNullException("emissiveMap"); EmissiveMap = emissiveMap; Intensity = new ComputeFloat(1.0f); UseAlpha = false; }
/// <summary> /// Initializes a new instance of the <see cref="MaterialOcclusionMapFeature"/> class. /// </summary> public MaterialOcclusionMapFeature() { AmbientOcclusionMap = new ComputeTextureScalar(); DirectLightingFactor = new ComputeFloat(0.0f); CavityMap = new ComputeTextureScalar(); DiffuseCavity = new ComputeFloat(1.0f); SpecularCavity = new ComputeFloat(1.0f); }
/// <summary> /// Initializes a new instance of the <see cref="MaterialEmissiveMapFeature"/> class. /// </summary> /// <param name="emissiveMap">The emissive map.</param> /// <exception cref="System.ArgumentNullException">emissiveMap</exception> public MaterialEmissiveMapFeature(IComputeColor emissiveMap) { if (emissiveMap == null) { throw new ArgumentNullException("emissiveMap"); } EmissiveMap = emissiveMap; Intensity = new ComputeFloat(1.0f); UseAlpha = false; }
public MaterialClearCoatFeature() { BasePaintGlossinessMap = new ComputeFloat(); BasePaintDiffuseMap = new ComputeColor(); MetalFlakesDiffuseMap = new ComputeColor(); MetalFlakesNormalMap = new ComputeColor(); MetalFlakesGlossinessMap = new ComputeFloat(); MetalFlakesMetalnessMap = new ComputeFloat(); OrangePeelNormalMap = new ComputeColor(); ClearCoatGlossinessMap = new ComputeFloat(); ClearCoatMetalnessMap = new ComputeFloat(); LODDistance = new ComputeFloat(1.000f); }
/// <summary> /// Initializes a new instance of the <see cref="MaterialTransparencyAdditiveFeature"/> class. /// </summary> public MaterialTransparencyAdditiveFeature() { Alpha = new ComputeFloat(0.5f); Tint = new ComputeColor(Color.White); }
/// <summary> /// Initializes a new instance of the <see cref="MaterialTransparencyBlendFeature"/> class. /// </summary> public MaterialTransparencyBlendFeature() { Alpha = new ComputeFloat(1f); Tint = new ComputeColor(Color.White); }
/// <summary> /// Initializes a new instance of the <see cref="MaterialSpecularMapFeature"/> class. /// </summary> public MaterialSpecularMapFeature() { SpecularMap = new ComputeTextureColor(); Intensity = new ComputeFloat(1.0f); IsEnergyConservative = true; }
/// <summary> /// Initializes a new instance of the <see cref="MaterialTransparencyCutoffFeature"/> class. /// </summary> public MaterialTransparencyCutoffFeature() { Alpha = new ComputeFloat(DefaultAlpha); }
/// <summary> /// Initializes a new instance of the <see cref="ComputeTextureColor" /> class. /// </summary> /// <param name="texture">The texture.</param> /// <param name="texcoordIndex">Index of the texcoord.</param> /// <param name="scale">The scale.</param> /// <param name="offset">The offset.</param> public ComputeTextureScalar(Texture texture, TextureCoordinate texcoordIndex, Vector2 scale, Vector2 offset) : base(texture, texcoordIndex, scale, offset) { Channel = ColorChannel.R; FallbackValue = new ComputeFloat(1); }
/// <summary> /// Initializes a new instance of the <see cref="MaterialTransparencyCutoffFeature"/> class. /// </summary> public MaterialTransparencyCutoffFeature() { Alpha = new ComputeFloat(DefaultAlpha); Tint = Color4.White; }