protected sealed override VFXExpression Evaluate(VFXExpression[] constParents)
        {
            var meshReduce = constParents[0];
            var mesh       = meshReduce.Get <Mesh>();

            return(VFXValue.Constant(VFXExpressionMesh.GetVertexStride(mesh)));
        }
        protected sealed override VFXExpression Evaluate(VFXExpression[] constParents)
        {
            var mesh          = constParents[0].Get <Mesh>();
            var vertexIndex   = constParents[1].Get <uint>();
            var channelOffset = constParents[2].Get <uint>();
            var vertexStride  = constParents[3].Get <uint>();

            return(VFXValue.Constant(VFXExpressionMesh.GetFloat3(mesh, vertexIndex, channelOffset, vertexStride)));
        }
        protected sealed override VFXExpression Evaluate(VFXExpression[] constParents)
        {
            var meshReduce         = constParents[0];
            var channelIndexReduce = constParents[1];

            var mesh         = meshReduce.Get <Mesh>();
            var channelIndex = channelIndexReduce.Get <uint>();

            return(VFXValue.Constant(VFXExpressionMesh.GetChannelOffset(mesh, channelIndex)));
        }
Ejemplo n.º 4
0
        protected sealed override VFXExpression Evaluate(VFXExpression[] constParents)
        {
            var meshReduce         = constParents[0];
            var vertexOffsetReduce = constParents[1];
            var channelFormatAndDimensionReduce = constParents[2];

            var mesh         = meshReduce.Get <Mesh>();
            var vertexOffset = vertexOffsetReduce.Get <uint>();
            var channelFormatAndDimension = channelFormatAndDimensionReduce.Get <uint>();

            return(VFXValue.Constant(VFXExpressionMesh.GetColor(mesh, vertexOffset, channelFormatAndDimension)));
        }