Simple3D
Search Results for

    Show / Hide Table of Contents

    Class DepthRenderer

    Opaque software triangle rasterizer with per-pixel depth and picking. Instances reuse depth and traversal scratch storage and are not thread safe.

    Inheritance
    object
    DepthRenderer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public sealed class DepthRenderer
    Remarks

    Transforms use single precision; triangles whose transformed positions or normals overflow or collapse are skipped. There is no far clipping plane.

    Fields

    | Edit this page View Source

    MaximumDimension

    Maximum width or height. Larger targets must be scaled by the host.

    Declaration
    public const int MaximumDimension = 2048
    Field Value
    Type Description
    int
    | Edit this page View Source

    MaximumRasterSamples

    Maximum total clipped triangle bounding-box samples evaluated per frame.

    Declaration
    public const long MaximumRasterSamples = 16000000
    Field Value
    Type Description
    long
    | Edit this page View Source

    MaximumTriangles

    Maximum triangles visited per render, including repeated mesh instances.

    Declaration
    public const int MaximumTriangles = 1000000
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Render(Scene, Camera, int, int, uint)

    Renders an owned snapshot. Dimensions must be 1..2048; background must be opaque. Equal-depth pixels favor earlier shapes. Scenes exceeding triangle or node budgets throw.

    Declaration
    public RenderFrame Render(Scene scene, Camera camera, int width, int height, uint background = 4294244090)
    Parameters
    Type Name Description
    Scene scene
    Camera camera
    int width
    int height
    uint background
    Returns
    Type Description
    RenderFrame
    | Edit this page View Source

    RenderInto(Scene, Camera, RenderTarget, uint)

    Renders into a reusable target. Its previous pixels and picks are overwritten; after an exception, render again before reading it.

    Declaration
    public void RenderInto(Scene scene, Camera camera, RenderTarget target, uint background = 4294244090)
    Parameters
    Type Name Description
    Scene scene
    Camera camera
    RenderTarget target
    uint background
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX