Example #1
0
        protected override void InputPortUpdate()
        {
            float x = InputAPort.GetFirst();
            float y = InputBPort.GetFirst();

            Output1Port.Output = new Vector2(x, y);
        }
Example #2
0
        protected override void InputPortUpdate()
        {
            Vector2 pos = InputAPort.GetFirst();

            pos *= scale;
            pos += offset;

            OutputPort.Output = Mathf.PerlinNoise(pos.x, pos.y);
        }