Class CompositorStageRenderSettings

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class CompositorStageRenderSettings
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Member documentation

    • m_PrimaryColor – Primary color is applied as a tint to (i.e. multiplied with) the model's texture.
    • m_flVignetteInnerRadius – Vignette radius is in meters and is used to fade to the specified secondary solid color over that 3D distance from the origin of the playspace.
    • m_flFresnelStrength – Fades to the secondary color based on view incidence.

      This variable controls the linearity of the effect. It is mutually exclusive with vignette. Additionally, it treats the mesh as faceted.

    • m_bBackfaceCulling – Controls backface culling.
    • m_bGreyscale – Converts the render model's texture to luma and applies to rgb equally.

      This is useful to combat compression artifacts that can occur on desaturated source material.

    • m_bWireframe – Renders mesh as a wireframe.

    Layout

    
     struct Compositor_StageRenderSettings {
         HmdColor_t m_PrimaryColor;
         HmdColor_t m_SecondaryColor;
         float m_flVignetteInnerRadius;
         float m_flVignetteOuterRadius;
         float m_flFresnelStrength;
         bool m_bBackfaceCulling;
         bool m_bGreyscale;
         bool m_bWireframe;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_PRIMARYCOLOR, M_SECONDARYCOLOR, M_FLVIGNETTEINNERRADIUS, M_FLVIGNETTEOUTERRADIUS, M_FLFRESNELSTRENGTH, M_BBACKFACECULLING, M_BGREYSCALE, M_BWIREFRAME

        The struct member offsets.
    • Constructor Detail

      • CompositorStageRenderSettings

        public CompositorStageRenderSettings​(java.nio.ByteBuffer container)
        Creates a CompositorStageRenderSettings instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • m_PrimaryColor

        public HmdColor m_PrimaryColor()
        Returns a HmdColor view of the m_PrimaryColor field.
      • m_SecondaryColor

        public HmdColor m_SecondaryColor()
        Returns a HmdColor view of the m_SecondaryColor field.
      • m_flVignetteInnerRadius

        public float m_flVignetteInnerRadius()
        Returns the value of the m_flVignetteInnerRadius field.
      • m_flVignetteOuterRadius

        public float m_flVignetteOuterRadius()
        Returns the value of the m_flVignetteOuterRadius field.
      • m_flFresnelStrength

        public float m_flFresnelStrength()
        Returns the value of the m_flFresnelStrength field.
      • m_bBackfaceCulling

        public boolean m_bBackfaceCulling()
        Returns the value of the m_bBackfaceCulling field.
      • m_bGreyscale

        public boolean m_bGreyscale()
        Returns the value of the m_bGreyscale field.
      • m_bWireframe

        public boolean m_bWireframe()
        Returns the value of the m_bWireframe field.
      • malloc

        public static CompositorStageRenderSettings malloc()
        Returns a new CompositorStageRenderSettings instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CompositorStageRenderSettings calloc()
        Returns a new CompositorStageRenderSettings instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CompositorStageRenderSettings create​(long address)
        Returns a new CompositorStageRenderSettings instance for the specified memory address.
      • mallocStack

        public static CompositorStageRenderSettings mallocStack()
        Returns a new CompositorStageRenderSettings instance allocated on the thread-local MemoryStack.
      • callocStack

        public static CompositorStageRenderSettings callocStack()
        Returns a new CompositorStageRenderSettings instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CompositorStageRenderSettings mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CompositorStageRenderSettings instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CompositorStageRenderSettings callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CompositorStageRenderSettings instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nm_flVignetteInnerRadius

        public static float nm_flVignetteInnerRadius​(long struct)
        Unsafe version of m_flVignetteInnerRadius().
      • nm_flVignetteOuterRadius

        public static float nm_flVignetteOuterRadius​(long struct)
        Unsafe version of m_flVignetteOuterRadius().
      • nm_flFresnelStrength

        public static float nm_flFresnelStrength​(long struct)
        Unsafe version of m_flFresnelStrength().
      • nm_bBackfaceCulling

        public static boolean nm_bBackfaceCulling​(long struct)
        Unsafe version of m_bBackfaceCulling().
      • nm_bGreyscale

        public static boolean nm_bGreyscale​(long struct)
        Unsafe version of m_bGreyscale().
      • nm_bWireframe

        public static boolean nm_bWireframe​(long struct)
        Unsafe version of m_bWireframe().