Ejemplo n.º 1
0
 public static CommonTypes.Vec2 GetVec2FromVector2(Vector2 m)
 {
     CommonTypes.Vec2 vec2 = new CommonTypes.Vec2();
     vec2.x = m.x;
     vec2.y = m.y;
     return(vec2);
 }
Ejemplo n.º 2
0
        public void SetSubroutineUniformVec2(string uniformName, Vector2 value)
        {
            if (m_handle == HVR.Interface.Types.INVALID_HANDLE)
            {
                return;
            }

            CommonTypes.Vec2 vec2 = new CommonTypes.Vec2 {
                x = value.x, y = value.y
            };

            HvrPlayerInterfaceAPI.Actor_SetSubroutineUniformVec2(handle, uniformName, ref vec2);
        }
 public static extern void Actor_SetSubroutineUniformVec2(Int32 actor, string uniformName, [In] ref CommonTypes.Vec2 value);