Esempio n. 1
0
 public static CommonTypes.Vec4 GetVec2FromVector4(Vector4 m)
 {
     CommonTypes.Vec4 vec4 = new CommonTypes.Vec4();
     vec4.x = m.x;
     vec4.y = m.y;
     vec4.z = m.z;
     vec4.w = m.w;
     return(vec4);
 }
Esempio n. 2
0
        public void SetSubroutineUniformVec4(string uniformName, Vector4 value)
        {
            if (m_handle == HVR.Interface.Types.INVALID_HANDLE)
            {
                return;
            }

            CommonTypes.Vec4 vec4 = new CommonTypes.Vec4
            {
                x = value.x,
                y = value.y,
                z = value.z,
                w = value.w
            };

            HvrPlayerInterfaceAPI.Actor_SetSubroutineUniformVec4(handle, uniformName, ref vec4);
        }
 public static extern void Actor_SetSubroutineUniformVec4(Int32 actor, string uniformName, [In] ref CommonTypes.Vec4 value);