Esempio n. 1
0
        /// <summary>
        /// Create a brick texture with name
        /// </summary>
        /// <param name="name"></param>
        public BrickTexture(string name)
            : base(ShaderNodeType.BrickTexture, name)
        {
            inputs = new BrickInputs(this);
            outputs = new BrickOutputs(this);

            Offset = 0.5f;
            OffsetFrequency = 2;
            Squash = 1.0f;
            SquashFrequency = 2;

            ins.Color1.Value = new float4(0.1f, 0.2f, 0.3f);
            ins.Color2.Value = new float4(0.3f, 0.2f, 0.1f);
            ins.Mortar.Value = new float4();

            ins.Scale.Value = 5.0f;
            ins.MortarSize.Value = 0.02f;
            ins.Bias.Value = 0.0f;
            ins.BrickWidth.Value = 0.5f;
            ins.RowHeight.Value = 0.25f;
        }
Esempio n. 2
0
        /// <summary>
        /// Create a brick texture with name
        /// </summary>
        /// <param name="name"></param>
        public BrickTexture(string name)
            : base(ShaderNodeType.BrickTexture, name)
        {
            inputs = new BrickInputs(this);
            outputs = new BrickOutputs(this);

            Offset = 0.5f;
            OffsetFrequency = 2;
            Squash = 1.0f;
            SquashFrequency = 2;

            ins.Color1.Value = new float4(0.1f, 0.2f, 0.3f);
            ins.Color2.Value = new float4(0.3f, 0.2f, 0.1f);
            ins.Mortar.Value = new float4();

            ins.Scale.Value = 5.0f;
            ins.MortarSize.Value = 0.02f;
            ins.Bias.Value = 0.0f;
            ins.BrickWidth.Value = 0.5f;
            ins.RowHeight.Value = 0.25f;
        }