Exemplo n.º 1
0
        public AnisotropicBsdfNode(string name) :
            base(ShaderNodeType.Anisotropic, name)
        {
            inputs               = new AnisotropicBsdfInputs(this);
            outputs              = new AnisotropicBsdfOutputs(this);
            ins.Color.Value      = new float4(1.0f);
            ins.Tangent.Value    = new float4(0.0f, 0.0f, 0.0f, 1.0f);
            ins.Roughness.Value  = 0.2f;
            ins.Anisotropy.Value = 0.5f;
            ins.Rotation.Value   = 0.0f;

            Distribution = AnisotropicDistribution.GGX;
        }
Exemplo n.º 2
0
        public AnisotropicBsdfNode(string name)
            : base(ShaderNodeType.Anisotropic, name)
        {
            inputs = new AnisotropicBsdfInputs(this);
            outputs = new AnisotropicBsdfOutputs(this);
            ins.Color.Value = new float4(1.0f);
            ins.Tangent.Value = new float4(0.0f, 0.0f, 0.0f, 1.0f);
            ins.Roughness.Value = 0.2f;
            ins.Anisotropy.Value = 0.5f;
            ins.Rotation.Value = 0.0f;

            Distribution = AnisotropicDistribution.GGX;
        }