Пример #1
0
 public static CommonTypes.Vec3 GetVec2FromVector3(Vector3 m)
 {
     CommonTypes.Vec3 vec3 = new CommonTypes.Vec3();
     vec3.x = m.x;
     vec3.y = m.y;
     vec3.z = m.z;
     return(vec3);
 }
Пример #2
0
        public void SetSubroutineUniformVec3(string uniformName, Vector3 value)
        {
            if (m_handle == HVR.Interface.Types.INVALID_HANDLE)
            {
                return;
            }

            CommonTypes.Vec3 vec3 = new CommonTypes.Vec3 {
                x = value.x,
                y = value.y,
                z = value.z
            };

            HvrPlayerInterfaceAPI.Actor_SetSubroutineUniformVec3(handle, uniformName, ref vec3);
        }
 public static extern void Actor_SetSubroutineUniformVec3(Int32 actor, string uniformName, [In] ref CommonTypes.Vec3 value);