/// <summary> /// Initializes a new instance of the <see cref="TreeMaterial"/> class. /// </summary> /// <param name="shader">The shader.</param> public TreeMaterial(ForwardTreeShader shader) { wsource = new WindStrengthSin(); this.animator = new TreeWindAnimator(wsource); this.shader = shader; CanAppearOfReflectionRefraction = true; CanCreateShadow = true; IsVisible = true; }
/// <summary> /// Initializes a new instance of the <see cref="TreeMaterial"/> class. /// </summary> /// <param name="shader">The shader.</param> /// <param name="wsource">The wsource.</param> public TreeMaterial(ForwardTreeShader shader, WindSource wsource) { this.wsource = wsource; this.shader = shader; this.animator = new TreeWindAnimator(wsource); CanAppearOfReflectionRefraction = true; CanCreateShadow = true; IsVisible = true; }
/// <summary> /// Initializes a new instance of the <see cref="TreeMaterial"/> class. /// </summary> /// <param name="shader">The shader.</param> /// <param name="wsource">The wsource.</param> public TreeMaterial(ForwardTreeShader shader, WindSource wsource) { this.wsource = wsource; this.shader = shader; this.animator = new TreeWindAnimator(wsource); }
/// <summary> /// Initializes a new instance of the <see cref="TreeMaterial"/> class. /// </summary> /// <param name="shader">The shader.</param> public TreeMaterial(ForwardTreeShader shader) { wsource = new WindStrengthSin(); this.animator = new TreeWindAnimator(wsource); this.shader = shader; }
public TreeWindAnimator(WindSource wind) { this.wind = wind; }