Exemplo n.º 1
0
        /// <summary>
        /// Performs an occlusion query on this scene.
        /// </summary>
        /// <param name="ray">The ray structure to use.</param>
        public unsafe void Occlusion(RayStruct1 *ray)
        {
            #if DEBUG
            CheckDisposed();

            if (!AlgorithmFlags.HasFlag(AlgorithmFlags.Intersect1))
            {
                throw new InvalidOperationException("AlgorithmFlags.Intersect1 not set.");
            }
            #endif

            RTC.Occluded(NativePtr, ray);
        }